Some tasks with extensive IRQ usage needs a way to clear pending interrupts.
I request a simple function in NVIC like this:
Code: Select all
void nvicClearPending(uint32_t n) {
NVIC->ICPR[n >> 5] = 1 << (n & 0x1F);
}
Patch attached. Thanks.
Code: Select all
void nvicClearPending(uint32_t n) {
NVIC->ICPR[n >> 5] = 1 << (n & 0x1F);
}