Do you have some examples using SW buttons in FRDMK64 with interrupts, SDK2.0 and freertos ?
Solved! Go to Solution.
Raul,
Here's a simple example that will read the SW2 input and then change the color and frequency of the LED flash. This example builds off of the FrerRTOS hello world example that is shipped with SDK 2.0. You should be able to replace the freertos_hello.c file, build, and download to your target board.
The key points to enable the SW interrupt functionality can be round in the init_sw2() function.
This function will:
Once all of these steps are complete, the only step left is to add the IRQ handler to override the default weak implementation in the startup file. Don't forget to clear the interrupt before leaving your interrupt function.
Jason
Raul,
Here's a simple example that will read the SW2 input and then change the color and frequency of the LED flash. This example builds off of the FrerRTOS hello world example that is shipped with SDK 2.0. You should be able to replace the freertos_hello.c file, build, and download to your target board.
The key points to enable the SW interrupt functionality can be round in the init_sw2() function.
This function will:
Once all of these steps are complete, the only step left is to add the IRQ handler to override the default weak implementation in the startup file. Don't forget to clear the interrupt before leaving your interrupt function.
Jason
Jason
I was missing
Thanks
Raul