root/RF_BT_Tail/mcc_generated_files/interrupt_manager.c

Revision 244, 2.9 kB (checked in by phil, 4 years ago)

added initial Tail Source Package

Line 
1 /**
2   Generated Interrupt Manager Source File
3
4   @Company:
5     Microchip Technology Inc.
6
7   @File Name:
8     interrupt_manager.c
9
10   @Summary:
11     This is the Interrupt Manager file generated using PIC10 / PIC12 / PIC16 / PIC18 MCUs
12
13   @Description:
14     This header file provides implementations for global interrupt handling.
15     For individual peripheral handlers please see the peripheral driver for
16     all modules selected in the GUI.
17     Generation Information :
18         Product Revision  :  PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.65.2
19         Device            :  PIC16F1579
20         Driver Version    :  2.03
21     The generated drivers are tested against the following:
22         Compiler          :  XC8 1.45 or later
23         MPLAB             :  MPLAB X 4.15
24 */
25
26 /*
27     (c) 2018 Microchip Technology Inc. and its subsidiaries.
28    
29     Subject to your compliance with these terms, you may use Microchip software and any
30     derivatives exclusively with Microchip products. It is your responsibility to comply with third party
31     license terms applicable to your use of third party software (including open source software) that
32     may accompany Microchip software.
33    
34     THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER
35     EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY
36     IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS
37     FOR A PARTICULAR PURPOSE.
38    
39     IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
40     INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND
41     WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP
42     HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO
43     THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL
44     CLAIMS IN ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT
45     OF FEES, IF ANY, THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS
46     SOFTWARE.
47 */
48
49 #include "interrupt_manager.h"
50 #include "mcc.h"
51
52 void __interrupt() INTERRUPT_InterruptManager (void)
53 {
54     // interrupt handler
55     if(INTCONbits.TMR0IE == 1 && INTCONbits.TMR0IF == 1)
56     {
57         TMR0_ISR();
58     }
59     else if(INTCONbits.PEIE == 1)
60     {
61         if(PIE1bits.TXIE == 1 && PIR1bits.TXIF == 1)
62         {
63             EUSART_TxDefaultInterruptHandler();
64         }
65         else if(PIE1bits.RCIE == 1 && PIR1bits.RCIF == 1)
66         {
67             EUSART_RxDefaultInterruptHandler();
68         }
69         else if(PIE1bits.TMR1IE == 1 && PIR1bits.TMR1IF == 1)
70         {
71             TMR1_ISR();
72         }
73         else if(PIE1bits.TMR1GIE == 1 && PIR1bits.TMR1GIF == 1)
74         {
75             TMR1_GATE_ISR();
76         }
77         else
78         {
79             //Unhandled Interrupt
80         }
81     }     
82     else
83     {
84         //Unhandled Interrupt
85     }
86 }
87 /**
88  End of File
89 */
Note: See TracBrowser for help on using the browser.