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

Go to the source code of this file.

Macros

#define STK   150
#define TASKPRIO   10

Functions

 PUSHREGS ()
 if (!k_running) goto exitt
 if (-1==ki_signal(syncSem)) ISRoverflow++
 K_CHG_STAK ()
 RETI ()
void task1 ()
void task2 ()
void setup ()
void loop ()

Variables

struct k_tpTask1
struct k_tpTask2
struct k_tmutSem
struct k_tsyncSem
struct k_ttimedSem1
struct k_ttimedSem2
volatile int t2Missed = 0
volatile int t2Hit = 0
volatile int ISRoverflow = 0
exitt __pad0__

Macro Definition Documentation

◆ STK

#define STK   150

Definition at line 10 of file rt-arduino-isrsync.ino.

◆ TASKPRIO

#define TASKPRIO   10

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

Function Documentation

◆ if() [1/2]

if ( ! k_running)

Definition at line 1274 of file krnl.c.

◆ if() [2/2]

if ( - 1 = =ki_signal(syncSem))

References ISRoverflow, and syncSem.

◆ K_CHG_STAK()

K_CHG_STAK ( )

◆ loop()

void loop ( void )

Definition at line 129 of file rt-arduino-isrsync.ino.

◆ PUSHREGS()

PUSHREGS ( )

References k_running.

Referenced by ISR(), ISR(), ki_task_shift(), and xxx().

Here is the caller graph for this function:

◆ RETI()

RETI ( )

◆ setup()

void setup ( )

Definition at line 81 of file rt-arduino-isrsync.ino.

References k_crt_sem(), k_crt_task(), k_init(), k_start(), pTask1, pTask2, STK, syncSem, task1(), and task2().

Here is the call graph for this function:

◆ task1()

void task1 ( )

Definition at line 49 of file rt-arduino-isrsync.ino.

References i, ISRoverflow, k_wait(), and syncSem.

Here is the call graph for this function:

◆ task2()

void task2 ( )

Definition at line 67 of file rt-arduino-isrsync.ino.

References i, and k_sleep().

Here is the call graph for this function:

Variable Documentation

◆ __pad0__

exitt __pad0__

Definition at line 43 of file rt-arduino-isrsync.ino.

◆ ISRoverflow

volatile int ISRoverflow = 0

Definition at line 24 of file rt-arduino-isrsync.ino.

◆ mutSem

struct k_t* mutSem

Definition at line 17 of file rt-arduino-isrsync.ino.

◆ pTask1

struct k_t* pTask1

Definition at line 15 of file rt-arduino-isrsync.ino.

◆ pTask2

struct k_t * pTask2

Definition at line 15 of file rt-arduino-isrsync.ino.

◆ syncSem

struct k_t * syncSem

Definition at line 17 of file rt-arduino-isrsync.ino.

◆ t2Hit

volatile int t2Hit = 0

Definition at line 21 of file rt-arduino-isrsync.ino.

◆ t2Missed

volatile int t2Missed = 0

Definition at line 21 of file rt-arduino-isrsync.ino.

◆ timedSem1

struct k_t* timedSem1

Definition at line 19 of file rt-arduino-isrsync.ino.

◆ timedSem2

struct k_t * timedSem2

Definition at line 19 of file rt-arduino-isrsync.ino.