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.

https://github.com/0xc0170/mbed/blob/master/libraries/mbed/targets/cmsis/TARGET_Freescale/TARGET_K64F/MK64F12.h

Regards,
0xc0170

Accepted Answer