Statistics
| Branch: | Tag: | Revision:

mongoose / examples / PIC32 / mqtt_client / firmware / src / system_config / mx795_CC3100_e16 / system_interrupt.c @ eaef5bd1

History | View | Annotate | Download (4.22 KB)

1
/* clang-format off */
2
/*******************************************************************************
3
 System Interrupts File
4

5
  File Name:
6
    system_interrupt.c
7

8
  Summary:
9
    Raw ISR definitions.
10

11
  Description:
12
    This file contains a definitions of the raw ISRs required to support the
13
    interrupt sub-system.
14

15
  Summary:
16
    This file contains source code for the interrupt vector functions in the
17
    system.
18

19
  Description:
20
    This file contains source code for the interrupt vector functions in the
21
    system.  It implements the system and part specific vector "stub" functions
22
    from which the individual "Tasks" functions are called for any modules
23
    executing interrupt-driven in the MPLAB Harmony system.
24

25
  Remarks:
26
    This file requires access to the systemObjects global data structure that
27
    contains the object handles to all MPLAB Harmony module objects executing
28
    interrupt-driven in the system.  These handles are passed into the individual
29
    module "Tasks" functions to identify the instance of the module to maintain.
30
 *******************************************************************************/
31

    
32
// DOM-IGNORE-BEGIN
33
/*******************************************************************************
34
Copyright (c) 2011-2014 released Microchip Technology Inc.  All rights reserved.
35

36
Microchip licenses to you the right to use, modify, copy and distribute
37
Software only when embedded on a Microchip microcontroller or digital signal
38
controller that is integrated into your product or third party product
39
(pursuant to the sublicense terms in the accompanying license agreement).
40

41
You should refer to the license agreement accompanying this Software for
42
additional information regarding your rights and obligations.
43

44
SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
45
EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
46
MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
47
IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
48
CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
49
OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
50
INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
51
CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
52
SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
53
(INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
54
 *******************************************************************************/
55
// DOM-IGNORE-END
56

    
57
// *****************************************************************************
58
// *****************************************************************************
59
// Section: Included Files
60
// *****************************************************************************
61
// *****************************************************************************
62

    
63
#include <xc.h>
64
#include <sys/attribs.h>
65
#include "app.h"
66
#include "system_definitions.h"
67
#include "simplelink.h"
68

    
69
// *****************************************************************************
70
// *****************************************************************************
71
// Section: System Interrupt Vector Functions
72
// *****************************************************************************
73
// *****************************************************************************
74
extern P_EVENT_HANDLER g_cc3100_IRQ_handler;
75

    
76
void __ISR(_CHANGE_NOTICE_VECTOR, ipl2AUTO) _IntHandlerChangeNotification(void)
77
{    
78
    if (SYS_PORTS_PinRead(PORTS_ID_0, PORT_CHANNEL_D, PORTS_BIT_POS_15) == 0x01) {
79
        if (g_cc3100_IRQ_handler != NULL) {
80
            g_cc3100_IRQ_handler(0);
81
        }
82
    }
83
    DRV_SPI_Tasks(sysObj.spiObjectIdx0);
84

    
85
    PLIB_INT_SourceFlagClear(INT_ID_0,INT_SOURCE_CHANGE_NOTICE);
86
}
87

    
88
void __ISR(_UART_2_VECTOR, ipl3AUTO) _IntHandlerDrvUsartInstance0(void)
89
{
90
    DRV_USART_TasksTransmit(sysObj.drvUsart0);
91
    DRV_USART_TasksReceive(sysObj.drvUsart0);
92
    DRV_USART_TasksError(sysObj.drvUsart0);
93
}
94
 
95
 
96
 
97

    
98
 
99

    
100
 
101

    
102
 
103

    
104
 
105

    
106
 
107
 
108
 
109
 
110
/*******************************************************************************
111
 End of File
112
*/
113