krnl 1
Loading...
Searching...
No Matches
mutex2.ino File Reference
#include <krnl.h>
Include dependency graph for mutex2.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 mutex2.ino.

Function Documentation

◆ controlTask()

void controlTask ( )

Definition at line 38 of file mutex2.ino.

References data, k_mut_ceil_enter(), k_mut_ceil_leave(), k_set_sem_timer(), k_wait(), mutexSem, and sem.

Here is the call graph for this function:

◆ initData()

void initData ( )

Definition at line 18 of file mutex2.ino.

References data.

Referenced by setup().

Here is the caller graph for this function:

◆ loop()

void loop ( void )

Definition at line 75 of file mutex2.ino.

◆ lowTask()

void lowTask ( )

Definition at line 23 of file mutex2.ino.

References a, data, k_mut_ceil_enter(), k_mut_ceil_leave(), k_sleep(), and mutexSem.

Here is the call graph for this function:

◆ setup()

void setup ( )

Definition at line 59 of file mutex2.ino.

References controlTask(), initData(), k_crt_sem(), k_crt_task(), k_init(), k_mut_ceil_set(), 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 mutex2.ino.

◆ mutexSem

struct k_t * mutexSem

Definition at line 3 of file mutex2.ino.

◆ pT1

struct k_t * pT1

Definition at line 3 of file mutex2.ino.

◆ pT2

struct k_t * pT2

Definition at line 3 of file mutex2.ino.

◆ sem

struct k_t* sem

Definition at line 3 of file mutex2.ino.

◆ stakH

char stakH[100]

Definition at line 7 of file mutex2.ino.

◆ stakL

char stakL[100]

Definition at line 7 of file mutex2.ino.