Difference: CmsisRtos (55 vs. 56)

Revision 562021-05-31 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
%DASHBOARD{ section="banner"
Line: 183 to 183
 

How to use Tasks

Changed:
<
<
Create a Task Control Block (TCB) with the name blinker&
>
>
Create a Task Control Block (TCB) with the name blinker& (the ampersand at the end of the word is UNIX style, it means to start the process in the background and the shell job control does not wait till the process terminates).
 
task blinker&
Line: 201 to 201
 Another task to write date and time every second to the OLED:
: clock (  -- )

Changed:
<
<
['] oled-emit hook-emit ! \ redirect terminal to oled-emit
>
>
>oled \ redirect terminal to oled-emit
  3 oledfont -1 -1 -1 alarm! \ set an alarm every second begin wait-alarm \ wait a second
Changed:
<
<
0 4 oledpos!
>
>
0 0 oledpos!
  .time again ;
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback