|
krnl 1
|
#include <krnl.h>
Go to the source code of this file.
Macros | |
| #define | STK 150 |
| #define | TASKPRIO 10 |
Functions | |
| PUSHREGS () | |
| if (!k_running) goto exitt | |
| if (-1==ki_signal(syncSem)) ISRoverflow++ | |
| K_CHG_STAK () | |
| RETI () | |
| void | task1 () |
| void | task2 () |
| void | setup () |
| void | loop () |
Variables | |
| struct k_t * | pTask1 |
| struct k_t * | pTask2 |
| struct k_t * | mutSem |
| struct k_t * | syncSem |
| struct k_t * | timedSem1 |
| struct k_t * | timedSem2 |
| volatile int | t2Missed = 0 |
| volatile int | t2Hit = 0 |
| volatile int | ISRoverflow = 0 |
| exitt | __pad0__ |
| #define STK 150 |
Definition at line 10 of file rt-arduino-isrsync.ino.
| #define TASKPRIO 10 |
Definition at line 12 of file rt-arduino-isrsync.ino.
References ISRoverflow, and syncSem.
| K_CHG_STAK | ( | ) |
| void loop | ( | void | ) |
Definition at line 129 of file rt-arduino-isrsync.ino.
| PUSHREGS | ( | ) |
References k_running.
Referenced by ISR(), ISR(), ki_task_shift(), and xxx().

| RETI | ( | ) |
| void setup | ( | ) |
Definition at line 81 of file rt-arduino-isrsync.ino.
References k_crt_sem(), k_crt_task(), k_init(), k_start(), pTask1, pTask2, STK, syncSem, task1(), and task2().

| void task1 | ( | ) |
Definition at line 49 of file rt-arduino-isrsync.ino.
References i, ISRoverflow, k_wait(), and syncSem.

| void task2 | ( | ) |
| exitt __pad0__ |
Definition at line 43 of file rt-arduino-isrsync.ino.
| volatile int ISRoverflow = 0 |
Definition at line 24 of file rt-arduino-isrsync.ino.
| struct k_t* mutSem |
Definition at line 17 of file rt-arduino-isrsync.ino.
| struct k_t* pTask1 |
Definition at line 15 of file rt-arduino-isrsync.ino.
| struct k_t * pTask2 |
Definition at line 15 of file rt-arduino-isrsync.ino.
| struct k_t * syncSem |
Definition at line 17 of file rt-arduino-isrsync.ino.
| volatile int t2Hit = 0 |
Definition at line 21 of file rt-arduino-isrsync.ino.
| volatile int t2Missed = 0 |
Definition at line 21 of file rt-arduino-isrsync.ino.
| struct k_t* timedSem1 |
Definition at line 19 of file rt-arduino-isrsync.ino.
| struct k_t * timedSem2 |
Definition at line 19 of file rt-arduino-isrsync.ino.