/******************************************************************************* System Interrupts File File Name: system_interrupt.c Summary: Raw ISR definitions. Description: This file contains a definitions of the raw ISRs required to support the interrupt sub-system. Summary: This file contains source code for the interrupt vector functions in the system. Description: This file contains source code for the interrupt vector functions in the system. It implements the system and part specific vector "stub" functions from which the individual "Tasks" functions are called for any modules executing interrupt-driven in the MPLAB Harmony system. Remarks: This file requires access to the systemObjects global data structure that contains the object handles to all MPLAB Harmony module objects executing interrupt-driven in the system. These handles are passed into the individual module "Tasks" functions to identify the instance of the module to maintain. *******************************************************************************/ // DOM-IGNORE-BEGIN /******************************************************************************* Copyright 2017 Microchip Technology Incorporated and its subsidiaries. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE *******************************************************************************/ // DOM-IGNORE-END // ***************************************************************************** // ***************************************************************************** // Section: Included Files // ***************************************************************************** // ***************************************************************************** #include "system/common/sys_common.h" //#include "app.h" #include "system_definitions.h" #include "NetworkConfig.h" // ***************************************************************************** // ***************************************************************************** // Section: System Interrupt Vector Functions // ***************************************************************************** // ***************************************************************************** void IntHandlerDrvUsartTransmitInstance0(void) { DRV_USART_TasksTransmit(sysObj.drvUsart0); } void IntHandlerDrvUsartReceiveInstance0(void) { DRV_USART_TasksReceive(sysObj.drvUsart0); } void IntHandlerDrvUsartErrorInstance0(void) { DRV_USART_TasksError(sysObj.drvUsart0); } void IntHandlerSysDmaInstance1(void) { SYS_DMA_TasksISR(sysObj.sysDma, DMA_CHANNEL_0); } void IntHandlerSysDmaInstance2(void) { SYS_DMA_TasksISR(sysObj.sysDma, DMA_CHANNEL_1); } void IntHandlerExternalInterruptInstance0(void) { PLIB_INT_SourceFlagClear(INT_ID_0, INT_SOURCE_EXTERNAL_2); #ifndef PIC32_USE_ETHERNET WDRV_WILC1000_ISR(); #endif /* #ifndef PIC32_USE_ETHERNET */ } void IntHandlerDrvTmrInstance0(void) { DRV_TMR_Tasks(sysObj.drvTmr0); } void IntHandlerSPIRxInstance0(void) { DRV_SPI_Tasks(sysObj.spiObjectIdx0); } void IntHandlerSPITxInstance0(void) { DRV_SPI_Tasks(sysObj.spiObjectIdx0); } void IntHandlerSPIFaultInstance0(void) { DRV_SPI_Tasks(sysObj.spiObjectIdx0); } void IntHandler_ETHMAC(void) { DRV_ETHMAC_Tasks_ISR((SYS_MODULE_OBJ)0); } /* This function is used by ETHMAC driver */ bool SYS_INT_SourceRestore(INT_SOURCE src, int level) { if(level) { SYS_INT_SourceEnable(src); } return level; } /******************************************************************************* End of File */