Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 7 months ago.
how to set priority for interrupts?
Hello Sir/Madam,
i want to set priority for two interrupts on I/O pins.
could you please help me regarding this.
Question relating to:
1 Answer
10 years, 7 months ago.
Hello,
please don't spam the question's thread, thanks.
You need to find out the the interrupt vector number, usually placed in the mcu header file. The declaration for the function you are looking for:
__STATIC_INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority);
Regards,
0xc0170