|
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 (ki_millis() - lastISR > 1000) | |
| 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 |
| static volatile unsigned int | lastISR = 0 |
| exitt | __pad0__ |
| #define STK 150 |
Definition at line 10 of file rt-arduino-isrsyncdebounce.ino.
| #define TASKPRIO 10 |
Definition at line 12 of file rt-arduino-isrsyncdebounce.ino.
| if | ( | ki_millis() - | lastISR, |
| 1000 | ) |
Definition at line 41 of file rt-arduino-isrsyncdebounce.ino.
References ISRoverflow, K_CHG_STAK, ki_millis(), ki_signal(), lastISR, and syncSem.

| void loop | ( | void | ) |
Definition at line 136 of file rt-arduino-isrsyncdebounce.ino.
| PUSHREGS | ( | ) |
References k_running.
| RETI | ( | ) |
| void setup | ( | ) |
Definition at line 88 of file rt-arduino-isrsyncdebounce.ino.
References k_crt_sem(), k_crt_task(), k_init(), k_start(), pTask1, pTask2, STK, syncSem, task1(), and task2().

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

| void task2 | ( | ) |
Definition at line 74 of file rt-arduino-isrsyncdebounce.ino.

| exitt __pad0__ |
Definition at line 50 of file rt-arduino-isrsyncdebounce.ino.
| volatile int ISRoverflow = 0 |
Definition at line 24 of file rt-arduino-isrsyncdebounce.ino.
|
static |
Definition at line 34 of file rt-arduino-isrsyncdebounce.ino.
| struct k_t* mutSem |
Definition at line 17 of file rt-arduino-isrsyncdebounce.ino.
| struct k_t* pTask1 |
Definition at line 15 of file rt-arduino-isrsyncdebounce.ino.
| struct k_t * pTask2 |
Definition at line 15 of file rt-arduino-isrsyncdebounce.ino.
| struct k_t * syncSem |
Definition at line 17 of file rt-arduino-isrsyncdebounce.ino.
| volatile int t2Hit = 0 |
Definition at line 21 of file rt-arduino-isrsyncdebounce.ino.
| volatile int t2Missed = 0 |
Definition at line 21 of file rt-arduino-isrsyncdebounce.ino.
| struct k_t* timedSem1 |
Definition at line 19 of file rt-arduino-isrsyncdebounce.ino.
| struct k_t * timedSem2 |
Definition at line 19 of file rt-arduino-isrsyncdebounce.ino.