Solar panel
Loading...
Searching...
No Matches
interrupt_manager.h
Go to the documentation of this file.
1
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#ifndef INTERRUPT_MANAGER_H
50#define INTERRUPT_MANAGER_H
51
52
63#define INTERRUPT_GlobalInterruptEnable() (INTCONbits.GIE = 1)
64
75#define INTERRUPT_GlobalInterruptDisable() (INTCONbits.GIE = 0)
86#define INTERRUPT_PeripheralInterruptEnable() (INTCONbits.PEIE = 1)
87
98#define INTERRUPT_PeripheralInterruptDisable() (INTCONbits.PEIE = 0)
99
110void INTERRUPT_Initialize (void);
111
112#endif // INTERRUPT_MANAGER_H
void INTERRUPT_Initialize(void)