Requires previous post.
Lets use FreeRTOS notifications to blink LEDs on the nucleo board. FreeRTOS notifications are a fast way to signal other tasks and to provide other tasks with data.
First create a new task.
Check if notifications are enabled.
Save and generate new code.
Modify the default task. If the default task receives 'Q' from UART then the second task will be sent a value of 42.
If the default task receives 'V' from UART then the second task will be sent a value of 1.
Modify the Task02. If the task02 receives 42 from the default task then the LED will be turned on.
If the task02 receives 1 from the default task then the LED will be turned off.
Sending commands from UART.
Turn LED on.
echo "Q" > /dev/ttyACM0
Turn LED off.
echo "V" > /dev/ttyACM0
Any other character does nothing to the state of the LED.