Robobo
|
Modules | |
Interrupt_deprecated_group | |
Macros | |
#define | cpu_irq_enable() |
#define | cpu_irq_disable() |
#define | cpu_irq_is_enabled() g_interrupt_enabled |
Typedefs | |
typedef uint32_t | irqflags_t |
Variables | |
int | g_interrupt_enabled |
Global NVIC interrupt enable status (by default it's enabled) | |
Interrupt Service Routine definition | |
#define | ISR(func) void func (void) |
Define service routine. More... | |
#define | irq_initialize_vectors() |
Initialize interrupt vectors. More... | |
#define | irq_register_handler(...) |
Register handler for interrupt. More... | |
#define cpu_irq_disable | ( | ) |
#define cpu_irq_enable | ( | ) |
#define irq_initialize_vectors | ( | ) |
Initialize interrupt vectors.
For NVIC the interrupt vectors are put in vector table. So nothing to do to initialize them, except defined the vector function with right name.
This must be called prior to irq_register_handler.
#define irq_register_handler | ( | ... | ) |
Register handler for interrupt.
For NVIC the interrupt vectors are put in vector table. So nothing to do to register them, except defined the vector function with right name.
Usage:
#define ISR | ( | func | ) | void func (void) |
Define service routine.
Usage:
func | Name for the function. |