[FEATURE REQUEST] STM32: nvicClearPending()

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
Post Reply
daemon
Posts: 35
Joined: Tue Oct 09, 2012 1:53 pm

[FEATURE REQUEST] STM32: nvicClearPending()

Post 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.
Attachments
nvic.patch.gz
ChibiOS 3.0 rev.7840
(468 Bytes) Downloaded 426 times
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: [FEATURE REQUEST] STM32: nvicClearPending()

Post by Giovanni »

Hi,

Added to 3.0.

Giovanni
daemon
Posts: 35
Joined: Tue Oct 09, 2012 1:53 pm

Re: [FEATURE REQUEST] STM32: nvicClearPending()

Post by daemon »

Thanks!
Post Reply