|
krnl 1
|
#include <krnl.h>
Go to the source code of this file.
Macros | |
| #define | TICKSPEED 10 |
| #define | STK 100 |
Functions | |
| void | highprio () |
| void | medprio () |
| void | lowprio () |
| void | setup () |
| void | loop () |
| void | k_sem_clip (unsigned char nr, int i) |
| void | k_breakout () |
Variables | |
| struct k_t * | pt1 |
| struct k_t * | pt2 |
| struct k_t * | pt3 |
| struct k_t * | sem1 |
| struct k_t * | sem2 |
| struct k_t * | sem3 |
| char | st1 [100] |
| char | st2 [100] |
| char | st3 [100] |
| volatile unsigned char | led13 = 0 |
| #define STK 100 |
Definition at line 35 of file akrnltaskblink3.ino.
| #define TICKSPEED 10 |
Definition at line 33 of file akrnltaskblink3.ino.
| void highprio | ( | ) |
Definition at line 40 of file akrnltaskblink3.ino.
References k_t::clip, k_set_sem_timer(), k_wait(), sem1, and TICKSPEED.

| void k_breakout | ( | void | ) |
Definition at line 110 of file akrnltaskblink3.ino.
| void k_sem_clip | ( | unsigned char | nr, |
| int | nrClip ) |
a function for overloading on usersite which is called when a semaphore is overflooding no occur - it's only reading out semaphore idendity Signal operations has not taken place ! 1: means first semahore allocated by user, 2 the next etc Interrupt is disabled when called and must not be enabled during.. so no print etc
| [in] | nr | id of semaphore 1,2,3,... |
| [in] | nrClip | number of times clip has occured (may be reset by call k_wait_lost) |
Definition at line 103 of file akrnltaskblink3.ino.
| void loop | ( | void | ) |
Definition at line 96 of file akrnltaskblink3.ino.
| void lowprio | ( | ) |
Definition at line 62 of file akrnltaskblink3.ino.
References k_t::clip, k_set_sem_timer(), k_wait(), led13, sem3, and TICKSPEED.

| void medprio | ( | ) |
Definition at line 52 of file akrnltaskblink3.ino.
References k_t::clip, k_set_sem_timer(), k_wait(), sem2, and TICKSPEED.

| void setup | ( | ) |
Definition at line 74 of file akrnltaskblink3.ino.
References highprio(), i, k_crt_sem(), k_crt_task(), k_init(), k_start(), lowprio(), medprio(), pt1, pt2, pt3, sem1, sem2, sem3, st1, st2, st3, and STK.

| volatile unsigned char led13 = 0 |
Definition at line 38 of file akrnltaskblink3.ino.
| struct k_t* pt1 |
Definition at line 30 of file akrnltaskblink3.ino.
| struct k_t * pt2 |
Definition at line 30 of file akrnltaskblink3.ino.
| struct k_t * pt3 |
Definition at line 30 of file akrnltaskblink3.ino.
| struct k_t * sem1 |
Definition at line 31 of file akrnltaskblink3.ino.
| struct k_t * sem2 |
Definition at line 31 of file akrnltaskblink3.ino.
| struct k_t * sem3 |
Definition at line 31 of file akrnltaskblink3.ino.
| char st1[100] |
Definition at line 36 of file akrnltaskblink3.ino.
| char st2[100] |
Definition at line 36 of file akrnltaskblink3.ino.
| char st3[100] |
Definition at line 36 of file akrnltaskblink3.ino.