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, 6 months ago.
FRDM-K64F: Ticker interrupt as top priority
Hi all,
Target is K64F. I'm trying to make the Ticker's IRQ the top priority. My general idea is to loop over all IRQs (0-255?) and push them "down" to priority 1, and then set the Ticker's priority to 0.
However, this line:
NVIC_SetPriority(TIMER3_IRQn, 0);
causes:
- Error: Identifier "TIMER3_IRQn" is undefined in "main.cpp", Line: 17, Col: 22
Why won't the compiler recognize TIMER3_IRQn? Is it because of the target that's not fully supported yet?
Now I could go ahead and use:
NVIC_SetPriority((IRQn_Type)x, 0);
but I don't know which IRQ number (x) to use.
Thanks in advance for your help.
Dave.
1 Answer
10 years, 6 months ago.
Hello,
here find IRQ enums : In the beginning of the file.
Regards,
0xc0170
Above link is dead; use http://developer.mbed.org/users/mbed_official/code/mbed/file/e188a91d3eaa/TARGET_K64F/MK64F12.h
posted by 18 Feb 2015