This section refers to the following sample application(s):

  • 00-uc_timers

The Timers section details the modifications done to timers implementation of uC/OS-II to ensure ultra low-power operation. It also highlights the two different approaches of delaying the execution of one of your tasks. We recommend you go over the Timers section before reading this section.

The 00-uc_timers Sample Application

The 00-uc_timers sample application creates two independent tasks (called timerATask and timerBTask). Each of these tasks continuously waits, and prints the letter "A" or "B" over the CLI.

This application runs without your intervention, and does not connect to the  network.

To run the 00-uc_timers sample application, program your  and open a terminal client on the CLI serial port. After the banner, you will see a continuous stream of "A" and "B" characters, indicating that the uC/OS-II kernel is constantly switching execution between the two tasks.

uc_timers app, ver 1.0.0.2
SmartMeshIP stack, ver 1.2.1.5
ABABABABABABABABABABABABABABABABABABABABAABABABABABABABABABABABABA
BABABABABABABABABAABABABABABABABABABABABABABABABABABABABABABAABABA
BABABABABABABABABABABABABABABABABABABAABABABABABABABABABABABABABAB
ABABABABABABAABABABABABABABABABABABABABABABABABABABABABAABABABABAB
ABABABABABABABABABABABABABABABABAABABABABABABABABABABABABABABABABA
BABABABABAABABABABABABABABABABABABABABABABABABABABABAABABABABABABA
BABABABABABABABABABABABABABAABABABABABABABABABABABABABABABABABABAB

While both tasks perform similar functions, the way the delay is implemented is different: