openMMC
Open Source Modular MMC for AMCs
|
Interruptions control. More...
#include "core_cm3.h"
Go to the source code of this file.
Macros | |
#define | irq_set_priority(irq, priority) NVIC_SetPriority( irq, priority ) |
Set interruption priority. | |
#define | irq_enable(irq) NVIC_EnableIRQ( irq ) |
Enable interruption. | |
#define | irq_disable(irq) NVIC_DisableIRQ( irq ) |
Disable interruption. | |
#define | irq_clear_pending(irq) NVIC_ClearPendingIRQ( irq ) |
Clear Pending Interrupt. | |
#define | irq_set_pending(irq) NVIC_SetPendingIRQ( irq ) |
Set Pending Interrupt. | |
#define | irq_get_active(irq) NVIC_GetActive( irq ) |
Get Active Interrupt. | |
Interruptions control.
#define irq_clear_pending | ( | irq | ) | NVIC_ClearPendingIRQ( irq ) |
Clear Pending Interrupt.
The function clears the pending bit of an external interrupt.
[in] | irq | External interrupt number. Value cannot be negative. |
#define irq_disable | ( | irq | ) | NVIC_DisableIRQ( irq ) |
Disable interruption.
[in] | irq | Interrupt number |
#define irq_enable | ( | irq | ) | NVIC_EnableIRQ( irq ) |
Enable interruption.
[in] | irq | Interrupt number |
#define irq_get_active | ( | irq | ) | NVIC_GetActive( irq ) |
Get Active Interrupt.
The function reads the interruption status register and returns the active bit.
[in] | irq | Interrupt number. |
#define irq_set_pending | ( | irq | ) | NVIC_SetPendingIRQ( irq ) |
Set Pending Interrupt.
The function sets the pending bit of an external interrupt.
[in] | irq | External interrupt number. Value cannot be negative. |
#define irq_set_priority | ( | irq, | |
priority ) NVIC_SetPriority( irq, priority ) |
Set interruption priority.
[in] | irq | Interrupt number |
[in] | priority | Priority level |