26 #ifndef __RFLPC_INTERRUPT_H__
27 #define __RFLPC_INTERRUPT_H__
30 #include "nxp/LPC17xx.h"
40 __asm
volatile(
"cpsie i");
46 __asm
volatile(
"cpsid i");
52 NVIC->ISER[irq >> 5] |= (1 << irq);
58 NVIC->ICER[irq >> 5] |= (1 << irq);
65 #define RFLPC_IRQ_HANDLER void __attribute__((interrupt("IRQ")))
void rflpc_irq_init()
Inits the interruption by relocating the interrupt vector to ram.
void rflpc_irq_set_handler(IRQn_Type irq, rflpc_irq_handler_t handler)
Sets an handler for the given IRQ.
static void rflpc_irq_global_disable()
Disable interrupts.
static void rflpc_irq_enable(IRQn_Type irq)
Enables a specific interrupt.
static void rflpc_irq_disable(IRQn_Type irq)
Disables a specific interrupt.
static void rflpc_irq_global_enable()
Enables interrupts.
void(* rflpc_irq_handler_t)(void)
Interrupt handler type.