|
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) |
| Set interruption priority. | |
| #define | irq_enable(irq) |
| Enable interruption. | |
| #define | irq_disable(irq) |
| Disable interruption. | |
| #define | irq_clear_pending(irq) |
| Clear Pending Interrupt. | |
| #define | irq_set_pending(irq) |
| Set Pending Interrupt. | |
| #define | irq_get_active(irq) |
| Get Active Interrupt. | |
Interruptions control.
| #define irq_clear_pending | ( | 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 | ) |
| #define irq_enable | ( | irq | ) |
| #define irq_get_active | ( | 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 | ) |
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 ) |
Set interruption priority.
| [in] | irq | Interrupt number |
| [in] | priority | Priority level |