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

Go to the source code of this file.

Macros

#define STK   150
#define TASKPRIO   10

Functions

void myISR_Debounce ()
void myISR_No_Debounce ()
void task1 ()
void task2 ()
void setup ()
void loop ()

Variables

char stkTask1 [150]
char stkTask2 [150]
struct k_tpTask1
struct k_tpTask2
struct k_tisrSyncSem
struct k_ttimedSem
const int msgQSize = 10
struct k_msg_tmsgQ
unsigned long dataBufForMsgQ [msgQSize]
volatile unsigned long isrCount = 0
volatile unsigned long localCpy = 0
unsigned long lastRun
const unsigned long debounceTime = 1000

Macro Definition Documentation

◆ STK

#define STK   150

Definition at line 47 of file ka03isrmsg.ino.

◆ TASKPRIO

#define TASKPRIO   10

Definition at line 52 of file ka03isrmsg.ino.

Function Documentation

◆ loop()

void loop ( void )

Definition at line 144 of file ka03isrmsg.ino.

◆ myISR_Debounce()

void myISR_Debounce ( )

Definition at line 70 of file ka03isrmsg.ino.

References debounceTime, isrCount, ki_millis(), ki_send(), lastRun, and msgQ.

Here is the call graph for this function:

◆ myISR_No_Debounce()

void myISR_No_Debounce ( )

Definition at line 79 of file ka03isrmsg.ino.

References isrCount, ki_millis(), ki_send(), and msgQ.

Here is the call graph for this function:

◆ setup()

void setup ( )

◆ task1()

void task1 ( )

Definition at line 86 of file ka03isrmsg.ino.

References k_set_sem_timer(), k_wait(), localCpy, and timedSem.

Here is the call graph for this function:

◆ task2()

void task2 ( )

Definition at line 101 of file ka03isrmsg.ino.

References DI, EI, k_receive(), localCpy, and msgQ.

Here is the call graph for this function:

Variable Documentation

◆ dataBufForMsgQ

unsigned long dataBufForMsgQ[msgQSize]

Definition at line 62 of file ka03isrmsg.ino.

◆ debounceTime

const unsigned long debounceTime = 1000

Definition at line 68 of file ka03isrmsg.ino.

◆ isrCount

volatile unsigned long isrCount = 0

Definition at line 65 of file ka03isrmsg.ino.

◆ isrSyncSem

struct k_t * isrSyncSem

Definition at line 57 of file ka03isrmsg.ino.

◆ lastRun

unsigned long lastRun

Definition at line 67 of file ka03isrmsg.ino.

◆ localCpy

volatile unsigned long localCpy = 0

Definition at line 65 of file ka03isrmsg.ino.

◆ msgQ

struct k_msg_t* msgQ

Definition at line 61 of file ka03isrmsg.ino.

◆ msgQSize

const int msgQSize = 10

Definition at line 60 of file ka03isrmsg.ino.

Referenced by setup().

◆ pTask1

struct k_t* pTask1

Definition at line 55 of file ka03isrmsg.ino.

◆ pTask2

struct k_t * pTask2

Definition at line 56 of file ka03isrmsg.ino.

◆ stkTask1

char stkTask1[150]

Definition at line 50 of file ka03isrmsg.ino.

◆ stkTask2

char stkTask2[150]

Definition at line 50 of file ka03isrmsg.ino.

◆ timedSem

struct k_t * timedSem

Definition at line 57 of file ka03isrmsg.ino.