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

Go to the source code of this file.

Functions

void doBlink (void)
void t1 (void)
void t2 (void)
void setup ()
void loop ()

Variables

struct k_tpt1
struct k_tsem1
struct k_tsem2
char s1 [100]
struct k_tpt2
char s2 [100]

Function Documentation

◆ doBlink()

void doBlink ( void )

Definition at line 8 of file timedsem.ino.

Referenced by t1().

Here is the caller graph for this function:

◆ loop()

void loop ( void )

Definition at line 53 of file timedsem.ino.

◆ setup()

void setup ( )

Definition at line 41 of file timedsem.ino.

References k_crt_sem(), k_crt_task(), k_init(), k_start(), pt1, pt2, s1, s2, sem1, sem2, t1, and t2.

Here is the call graph for this function:

◆ t1()

void t1 ( void )

Definition at line 15 of file timedsem.ino.

References doBlink(), k_wait(), and sem1.

Here is the call graph for this function:

◆ t2()

void t2 ( void )

Definition at line 29 of file timedsem.ino.

References i, j, k_set_sem_timer(), k_signal(), k_wait(), sem1, and sem2.

Here is the call graph for this function:

Variable Documentation

◆ pt1

struct k_t* pt1

Definition at line 4 of file timedsem.ino.

◆ pt2

struct k_t* pt2

Definition at line 27 of file timedsem.ino.

◆ s1

char s1[100]

Definition at line 5 of file timedsem.ino.

◆ s2

char s2[100]

Definition at line 28 of file timedsem.ino.

◆ sem1

struct k_t * sem1

Definition at line 4 of file timedsem.ino.

◆ sem2

struct k_t * sem2

Definition at line 4 of file timedsem.ino.