krnl 1
Loading...
Searching...
No Matches
rt-arduino-msgq01.ino File Reference
#include <krnl.h>
Include dependency graph for rt-arduino-msgq01.ino:

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

struct k_tpTask1
struct k_tpTask2
struct k_msg_tmsgQ
int dataBufForMsgQ [10]
struct k_ttimedSem1
struct k_ttimedSem2
struct k_tmutSem
volatile int t2Missed = 0
volatile int t2Hit = 0

Macro Definition Documentation

◆ STK

#define STK   150

Definition at line 7 of file rt-arduino-msgq01.ino.

◆ TASKPRIO

#define TASKPRIO   10

Definition at line 9 of file rt-arduino-msgq01.ino.

Function Documentation

◆ loop()

void loop ( void )

Definition at line 97 of file rt-arduino-msgq01.ino.

◆ setup()

void setup ( )

Definition at line 71 of file rt-arduino-msgq01.ino.

References 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.

Here is the call graph for this function:

◆ task1()

void task1 ( )

Definition at line 22 of file rt-arduino-msgq01.ino.

References i, k_send(), k_set_sem_timer(), k_signal(), k_wait(), msgQ, mutSem, and timedSem1.

Here is the call graph for this function:

◆ task2()

void task2 ( )

Definition at line 51 of file rt-arduino-msgq01.ino.

References k_receive(), k_set_sem_timer(), k_signal(), k_wait(), msgQ, mutSem, and timedSem2.

Here is the call graph for this function:

Variable Documentation

◆ dataBufForMsgQ

int dataBufForMsgQ[10]

Definition at line 16 of file rt-arduino-msgq01.ino.

◆ msgQ

struct k_msg_t* msgQ

Definition at line 14 of file rt-arduino-msgq01.ino.

◆ mutSem

struct k_t * mutSem

Definition at line 18 of file rt-arduino-msgq01.ino.

◆ pTask1

struct k_t* pTask1

Definition at line 12 of file rt-arduino-msgq01.ino.

◆ pTask2

struct k_t * pTask2

Definition at line 12 of file rt-arduino-msgq01.ino.

◆ t2Hit

volatile int t2Hit = 0

Definition at line 20 of file rt-arduino-msgq01.ino.

◆ t2Missed

volatile int t2Missed = 0

Definition at line 20 of file rt-arduino-msgq01.ino.

◆ timedSem1

struct k_t* timedSem1

Definition at line 18 of file rt-arduino-msgq01.ino.

◆ timedSem2

struct k_t * timedSem2

Definition at line 18 of file rt-arduino-msgq01.ino.