Difference: CmsisRtos (11 vs. 12)

Revision 122020-08-29 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
%DASHBOARD{ section="banner"
Line: 94 to 94
  Start the knightrider with default parameters and print the thread ID:

Changed:
<
<
' knightrider 0 0 osThreadNew . 536871016 ok.
>
>
' knightrider 0 0 osThreadNew .[RET] 536871016 ok.
 

Stop the thread with pressing button SW1 or


Changed:
<
<
536871016 osThreadTerminate drop ok.
>
>
536871016 osThreadTerminate drop[RET] ok.
 

Start the Knightrider with name="Knightrider" priority=48, stack_size=256:


Changed:
<
<
/osThreadAttr buffer: threadAttr \ buffer for thread attributes threadAttr /osThreadAttr 0 fill \ clear the buffer

16 buffer: threadString threadString .str" Knightrider" \ set the thread name

threadString threadAttr thName+ + ! 256 threadAttr thStackSize+ + ! 48 threadAttr thPriority+ + !

' knightrider-thread 0 threadAttr osThreadNew

.threads

>
>
\ buffer for thread attributes /osThreadAttr buffer: threadAttr[RET] ok. \ clear the buffer threadAttr /osThreadAttr 0 fill[RET] ok. \ set the thread name 16 buffer: threadString[RET] ok. threadString .str" Knightrider"[RET] ok. \ set the thread parameters threadString threadAttr thName+ + ![RET] ok. 256 threadAttr thStackSize+ + ![RET] ok. 48 threadAttr thPriority+ + ![RET] ok. \ start the thread ' knightrider-thread 0 threadAttr osThreadNew .[RET] 0 ok. \ print all threads .threads[RET]
 Name State Priority Stack Space MainThread Running 24 0754 CDC_Thread Blocked 24 0087
 
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