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

Go to the source code of this file.

Data Structures

struct  dataTp

Macros

#define STK   100

Functions

void initData ()
void lowTask ()
void controlTask ()
void setup ()
void loop ()

Variables

struct k_tsem
struct k_tmutexSem
struct k_tpT1
struct k_tpT2
char stakH [100]
char stakL [100]
struct dataTp data

Macro Definition Documentation

◆ STK

#define STK   100

Definition at line 5 of file mutex.ino.

Function Documentation

◆ controlTask()

void controlTask ( )

Definition at line 38 of file mutex.ino.

References data, k_set_sem_timer(), k_signal(), k_wait(), mutexSem, and sem.

Referenced by setup().

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

◆ initData()

void initData ( )

Definition at line 18 of file mutex.ino.

References data.

Referenced by setup().

Here is the caller graph for this function:

◆ loop()

void loop ( void )

Definition at line 74 of file mutex.ino.

◆ lowTask()

void lowTask ( )

Definition at line 23 of file mutex.ino.

References a, data, k_signal(), k_sleep(), k_wait(), and mutexSem.

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 59 of file mutex.ino.

References controlTask(), initData(), k_crt_sem(), k_crt_task(), k_init(), k_start(), lowTask(), mutexSem, pT1, pT2, sem, stakH, stakL, and STK.

Here is the call graph for this function:

Variable Documentation

◆ data

struct dataTp data

Definition at line 15 of file mutex.ino.

Referenced by controlTask(), initData(), and lowTask().

◆ mutexSem

struct k_t * mutexSem

Definition at line 3 of file mutex.ino.

Referenced by controlTask(), lowTask(), setup(), t1(), t1Code(), t2(), and t2Code().

◆ pT1

struct k_t * pT1

Definition at line 3 of file mutex.ino.

Referenced by setup().

◆ pT2

struct k_t * pT2

Definition at line 3 of file mutex.ino.

Referenced by setup().

◆ sem

◆ stakH

char stakH[100]

Definition at line 7 of file mutex.ino.

Referenced by setup().

◆ stakL

char stakL[100]

Definition at line 7 of file mutex.ino.

Referenced by setup().