Page 1 of 1

[FEATURE REQUEST] STM32: nvicClearPending()

Posted: Wed Apr 01, 2015 1:56 pm
by daemon
Hello!

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.

Re: [FEATURE REQUEST] STM32: nvicClearPending()

Posted: Wed Apr 01, 2015 2:24 pm
by Giovanni
Hi,

Added to 3.0.

Giovanni

Re: [FEATURE REQUEST] STM32: nvicClearPending()

Posted: Wed Apr 01, 2015 2:31 pm
by daemon
Thanks!