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

Go to the source code of this file.

Functions

void t1Code ()
void t2Code ()
void setup ()
void loop ()

Variables

struct k_tt1
struct k_tt2
struct k_tmutexSem
char stak1 [100]
char stak2 [100]

Function Documentation

◆ loop()

void loop ( void )

Definition at line 45 of file semmutex.ino.

◆ setup()

void setup ( )

Definition at line 36 of file semmutex.ino.

References k_crt_sem(), k_crt_task(), k_init(), k_start(), mutexSem, stak1, stak2, t1, t1Code(), t2, and t2Code().

Here is the call graph for this function:

◆ t1Code()

void t1Code ( )

Definition at line 13 of file semmutex.ino.

References k_signal(), k_wait(), and mutexSem.

Referenced by setup().

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

◆ t2Code()

void t2Code ( )

Definition at line 24 of file semmutex.ino.

References k_signal(), k_wait(), and mutexSem.

Referenced by setup().

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

Variable Documentation

◆ mutexSem

struct k_t * mutexSem

Definition at line 9 of file semmutex.ino.

◆ stak1

char stak1[100]

Definition at line 11 of file semmutex.ino.

◆ stak2

char stak2[100]

Definition at line 11 of file semmutex.ino.

◆ t1

struct k_t* t1 ( void )

Definition at line 9 of file semmutex.ino.

◆ t2

struct k_t * t2 ( void )

Definition at line 9 of file semmutex.ino.