Include dependency graph for code_TestQueus.c:
Go to the source code of this file.
|static void||invLed (Tuint08 lednr)|
|This file is solely for demonstration purposes. |
|static void||setNumber (Tuint08 mask, Tuint08 number)|
|static void invLed||(||Tuint08||lednr||)||
This file is solely for demonstration purposes.
Here we show the simple use of a queue. One 12 byte queue is defined which is written to from one task, 8 bytes at a time, and is read from in an other task, 6 bytes at a time. If a task does not gets access to the queue because it is blocked, it tries for about one second (using the time-out facility on locks) and then complains for about one second by blinking a led. It subsequently tries again. Notice the dynamics of the process, which is: write - read - write - read - write - read - read and then it repeats itself. It is possible to reset (empty) the queue by pushing the button.
Here is the call graph for this function:
Here is the caller graph for this function:
|static void setNumber||(||Tuint08||mask,|