|
krnl 1
|
#include <krnl.h>
Go to the source code of this file.
Macros | |
| #define | STK 110 |
Functions | |
| void | tperiodic () |
| void | tnoise () |
| void | setup () |
| void | loop () |
| void | k_sem_clip (unsigned char nr, int nrClip) |
Variables | |
| struct k_t * | p1 |
| struct k_t * | p2 |
| struct k_t * | sem1 |
| struct k_t * | sem2 |
| char | st1 [110] |
| char | st2 [110] |
| int | x = 0 |
| int | clipp |
| int | err |
| #define STK 110 |
Definition at line 4 of file k04periodic-clip.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 100 of file k04periodic-clip.ino.
| void loop | ( | void | ) |
Definition at line 95 of file k04periodic-clip.ino.
| void setup | ( | ) |
Definition at line 52 of file k04periodic-clip.ino.
References err, i, k_crt_sem(), k_crt_task(), k_init(), k_start(), p1, p2, sem1, st1, st2, STK, tnoise(), and tperiodic().

| void tnoise | ( | ) |
Definition at line 42 of file k04periodic-clip.ino.
References k_eat_msec(), and k_sleep().

| void tperiodic | ( | ) |
Definition at line 13 of file k04periodic-clip.ino.
References clipp, DI, EI, k_eat_msec(), k_set_sem_timer(), k_wait(), sem1, and x.

| int clipp |
Definition at line 12 of file k04periodic-clip.ino.
| int err |
Definition at line 50 of file k04periodic-clip.ino.
| struct k_t* p1 |
Definition at line 5 of file k04periodic-clip.ino.
| struct k_t * p2 |
Definition at line 5 of file k04periodic-clip.ino.
| struct k_t * sem1 |
Definition at line 5 of file k04periodic-clip.ino.
| struct k_t * sem2 |
Definition at line 5 of file k04periodic-clip.ino.
| char st1[110] |
Definition at line 7 of file k04periodic-clip.ino.
| char st2[110] |
Definition at line 7 of file k04periodic-clip.ino.
| int x = 0 |
Definition at line 11 of file k04periodic-clip.ino.