krnl
|
#include <krnl.h>
Go to the source code of this file.
Macros | |
#define | STK 150 |
#define | TASKPRIO 10 |
Functions | |
void | task1 () |
void | task2 () |
void | setup () |
void | loop () |
Variables | |
char | a1 [STK] |
char | a2 [STK] |
struct k_t * | pTask1 |
struct k_t * | pTask2 |
struct k_msg_t * | msgQ |
int | dataBufForMsgQ [10] |
struct k_t * | timedSem1 |
struct k_t * | timedSem2 |
struct k_t * | mutSem |
volatile int | t2Missed = 0 |
volatile int | t2Hit = 0 |
#define STK 150 |
Definition at line 5 of file k09msgq.ino.
#define TASKPRIO 10 |
Definition at line 8 of file k09msgq.ino.
void loop | ( | ) |
Definition at line 107 of file k09msgq.ino.
void setup | ( | ) |
Definition at line 82 of file k09msgq.ino.
References a1, a2, dataBufForMsgQ, k_crt_sem(), k_crt_send_Q(), k_crt_task(), k_init(), k_start(), msgQ, mutSem, pTask1, pTask2, STK, task1(), task2(), timedSem1, and timedSem2.
void task1 | ( | ) |
Definition at line 25 of file k09msgq.ino.
References i, k_eat_msec(), k_send(), k_set_sem_timer(), k_signal(), k_wait(), msgQ, mutSem, and timedSem1.
Referenced by setup().
void task2 | ( | ) |
Definition at line 56 of file k09msgq.ino.
References k_receive(), k_set_sem_timer(), k_signal(), k_wait(), msgQ, mutSem, and timedSem2.
Referenced by setup().
char a1[STK] |
Definition at line 6 of file k09msgq.ino.
Referenced by setup().
char a2[STK] |
Definition at line 6 of file k09msgq.ino.
Referenced by setup().
int dataBufForMsgQ[10] |
Definition at line 15 of file k09msgq.ino.
Referenced by setup().
struct k_msg_t* msgQ |
Definition at line 13 of file k09msgq.ino.
struct k_t * mutSem |
Definition at line 17 of file k09msgq.ino.
struct k_t* pTask1 |
Definition at line 11 of file k09msgq.ino.
Referenced by setup().
struct k_t * pTask2 |
Definition at line 11 of file k09msgq.ino.
Referenced by setup().
volatile int t2Hit = 0 |
Definition at line 19 of file k09msgq.ino.
volatile int t2Missed = 0 |
Definition at line 19 of file k09msgq.ino.
struct k_t* timedSem1 |
Definition at line 17 of file k09msgq.ino.
struct k_t * timedSem2 |
Definition at line 17 of file k09msgq.ino.