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

Go to the source code of this file.

Macros

#define STK   150
#define TASKPRIO   10

Functions

void myISR ()
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
volatile int isrCount = 0
volatile int localCpy = 0

Macro Definition Documentation

◆ STK

#define STK   150

Definition at line 45 of file ka01isr.ino.

◆ TASKPRIO

#define TASKPRIO   10

Definition at line 50 of file ka01isr.ino.

Function Documentation

◆ loop()

void loop ( void )

Definition at line 118 of file ka01isr.ino.

◆ myISR()

void myISR ( )

Definition at line 60 of file ka01isr.ino.

References isrCount, isrSyncSem, and ki_signal().

Referenced by setup().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setup()

void setup ( )

Definition at line 92 of file ka01isr.ino.

References isrSyncSem, k_crt_sem(), k_crt_task(), k_init(), k_start(), myISR(), pTask1, pTask2, STK, stkTask1, stkTask2, task1(), task2(), and timedSem.

Here is the call graph for this function:

◆ task1()

void task1 ( )

Definition at line 65 of file ka01isr.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 80 of file ka01isr.ino.

References DI, EI, isrCount, isrSyncSem, k_wait(), and localCpy.

Here is the call graph for this function:

Variable Documentation

◆ isrCount

volatile int isrCount = 0

Definition at line 58 of file ka01isr.ino.

Referenced by myISR(), myISR_Debounce(), myISR_No_Debounce(), and task2().

◆ isrSyncSem

struct k_t * isrSyncSem

Definition at line 55 of file ka01isr.ino.

Referenced by myISR(), myISR_Debounce(), myISR_No_Debounce(), setup(), and task2().

◆ localCpy

volatile int localCpy = 0

Definition at line 58 of file ka01isr.ino.

Referenced by task1(), and task2().

◆ pTask1

struct k_t* pTask1

Definition at line 53 of file ka01isr.ino.

◆ pTask2

struct k_t * pTask2

Definition at line 54 of file ka01isr.ino.

◆ stkTask1

char stkTask1[150]

Definition at line 48 of file ka01isr.ino.

Referenced by setup().

◆ stkTask2

char stkTask2[150]

Definition at line 48 of file ka01isr.ino.

Referenced by setup().

◆ timedSem

struct k_t * timedSem

Definition at line 55 of file ka01isr.ino.

Referenced by setup(), and task1().