|
krnl 1
|
#include <krnl.h>
Go to the source code of this file.
Data Structures | |
| struct | rdWrLockTp |
Functions | |
| int | rdWrLockInit (struct rdWrLockTp *lock) |
| void | rdEnter (struct rdWrLockTp *lock) |
| void | wrEnter (struct rdWrLockTp *lock) |
| void | wrLeave (struct rdWrLockTp *lock) |
| void | rdLeave (struct rdWrLockTp *lock) |
| void | wr (void) |
| void | rd (void) |
| void | setup () |
| void | loop () |
Variables | |
| struct rdWrLockTp | rdWrLock1 |
| volatile int | rdInsideFortest =0 |
| volatile int | rdNr = 0 |
| void loop | ( | void | ) |
Definition at line 113 of file rt-arduino-reader-writer01.ino.
| void rd | ( | void | ) |
| void rdEnter | ( | struct rdWrLockTp * | lock | ) |
Definition at line 27 of file rt-arduino-reader-writer01.ino.
References k_signal(), k_wait(), rdWrLockTp::rdCount, rdInsideFortest, rdWrLockTp::rdSem, and rdWrLockTp::wrSem.
Referenced by rd().


| void rdLeave | ( | struct rdWrLockTp * | lock | ) |
Definition at line 52 of file rt-arduino-reader-writer01.ino.
References k_signal(), k_wait(), rdWrLockTp::rdCount, rdInsideFortest, rdWrLockTp::rdSem, and rdWrLockTp::wrSem.
Referenced by rd().


| int rdWrLockInit | ( | struct rdWrLockTp * | lock | ) |
Definition at line 19 of file rt-arduino-reader-writer01.ino.
References k_crt_sem(), rdWrLockTp::rdCount, rdWrLockTp::rdSem, and rdWrLockTp::wrSem.
Referenced by setup().


| void setup | ( | ) |
Definition at line 99 of file rt-arduino-reader-writer01.ino.
References k_crt_task(), k_init(), k_start(), rd(), rdWrLock1, rdWrLockInit(), and wr().

| void wr | ( | void | ) |
Definition at line 64 of file rt-arduino-reader-writer01.ino.
References i, rdInsideFortest, rdWrLock1, wrEnter(), and wrLeave().

| void wrEnter | ( | struct rdWrLockTp * | lock | ) |
Definition at line 38 of file rt-arduino-reader-writer01.ino.
References k_signal(), k_wait(), rdWrLockTp::rdSem, and rdWrLockTp::wrSem.
Referenced by wr().


| void wrLeave | ( | struct rdWrLockTp * | lock | ) |
Definition at line 45 of file rt-arduino-reader-writer01.ino.
References k_signal(), k_wait(), rdWrLockTp::rdSem, and rdWrLockTp::wrSem.
Referenced by wr().


| volatile int rdInsideFortest =0 |
Definition at line 15 of file rt-arduino-reader-writer01.ino.
| volatile int rdNr = 0 |
Definition at line 81 of file rt-arduino-reader-writer01.ino.
| struct rdWrLockTp rdWrLock1 |
Definition at line 13 of file rt-arduino-reader-writer01.ino.