Blinky RTX Example

nRF5 SDK v12.1.0

The Blinky RTX Example shows RTX features like osSignal, osDelay, and osTimer.

Page-1 Start/End-point Start Start Process.245 Configuration Configuration Process.229 Waiting for SIGNAL_LED_1_TOGGLE Waiting for SIGNAL_LED_1_TOGGLE Process.230 Waiting for osDelay Waiting for osDelay Process.231 Waiting for timer expires Waiting for timer expires Process.232 Toggling LED_1 Toggling LED_1 Process.233 Sending SINGAL_LED_1_TOGGLE Sending SINGAL_LED_1_TOGGLE Process.234 Toggling LED_0 Toggling LED_0 Decision.251 Flowline1 Flowline1.237 Sheet.238 Flowline1.239 Flowline1.240 Flowline1.241 Flowline1.242 Flowline1.243 Get SIGNAL_LED_1_TOGGLE Get SIGNAL_LED_1_TOGGLE Flowline2 No signal Straight Edge.28 N Straight Edge.29 N No signal Flowline1.247 After(LED_1_INTERVAL) After(LED_1_INTERVAL) Flowline2.248 Straight Edge.28 N Straight Edge.29 N Flowline2.251 Straight Edge.28 N Straight Edge.29 N Flowline1.254 led_toggle_timer expired led_toggle_timer expired Flowline2.258 Straight Edge.28 N Straight Edge.29 N

When the application starts, two GPIO pins are configured as outputs using the BSP module to drive the LEDs. Then, a new thread and timer are created.

Setup

You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\peripheral\blinky_rtx

LED assignments:

  • LED 1 and LED 2: Blinking.

Testing

Test the Blinky RTX Example application by performing the following steps:

  1. Compile and program the application.
  2. Observe that the LEDs are blinking.
Note
See RTX support for more information about RTX.