Bar Logo 3.8/7.6 kw Totem pole Demonstration Application (Part-No. (not specified))
 
Content
     
Loading...
Searching...
No Matches
interrupt.h
1
17/*
18© [2024] Microchip Technology Inc. and its subsidiaries.
19
20 Subject to your compliance with these terms, you may use Microchip
21 software and any derivatives exclusively with Microchip products.
22 You are responsible for complying with 3rd party license terms
23 applicable to your use of 3rd party software (including open source
24 software) that may accompany Microchip software. SOFTWARE IS ?AS IS.?
25 NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS
26 SOFTWARE, INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT,
27 MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
28 WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
29 INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY
30 KIND WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF
31 MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE
32 FORESEEABLE. TO THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP?S
33 TOTAL LIABILITY ON ALL CLAIMS RELATED TO THE SOFTWARE WILL NOT
34 EXCEED AMOUNT OF FEES, IF ANY, YOU PAID DIRECTLY TO MICROCHIP FOR
35 THIS SOFTWARE.
36*/
37
38#ifndef INTERRUPT_H
39#define INTERRUPT_H
40
41// Section: Driver Interface Function
42
49void INTERRUPT_Initialize(void);
50
57void INTERRUPT_Deinitialize(void);
58
65inline static void INTERRUPT_GlobalEnable(void)
66{
67 __builtin_enable_interrupts();
68}
69
76inline static void INTERRUPT_GlobalDisable(void)
77{
78 __builtin_disable_interrupts();
79}
80
87inline static uint16_t INTERRUPT_VectorNumberGet(void)
88{
89 return _VECNUM;
90}
91
92#endif
93
static void INTERRUPT_GlobalEnable(void)
Enables the global interrupt bit.
Definition interrupt.h:65
void INTERRUPT_Deinitialize(void)
Deinitializes the INTERRUPT to POR values.
Definition interrupt.c:56
static uint16_t INTERRUPT_VectorNumberGet(void)
Returns the pending Interrupt Vector number.
Definition interrupt.h:87
void INTERRUPT_Initialize(void)
Initializes the interrupt priorities of the modules that have been configured.
Definition interrupt.c:44
static void INTERRUPT_GlobalDisable(void)
Disables the global interrupt bit.
Definition interrupt.h:76