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

Go to the source code of this file.

Macros

#define TICKSPEED   10
#define STK   100

Functions

void highprio ()
void medprio ()
void lowprio ()
void setup ()
void k_sem_clip (unsigned char nr, int i)
void k_send_Q_clip (unsigned char nr, int i)
 breakout for k_send
void k_breakout ()
void loop ()

Variables

struct k_tpt1
struct k_tpt2
struct k_tpt3
struct k_tsem1
struct k_tsem2
struct k_tsem3
char st1 [100]
char st2 [100]
char st3 [100]
volatile int cnt = 0

Macro Definition Documentation

◆ STK

#define STK   100

Definition at line 8 of file akrnltaskblink.ino.

◆ TICKSPEED

#define TICKSPEED   10

Definition at line 6 of file akrnltaskblink.ino.

Function Documentation

◆ highprio()

void highprio ( )

Definition at line 13 of file akrnltaskblink.ino.

References k_t::clip, cnt, k_set_sem_timer(), loop(), sem1, and TICKSPEED.

Here is the call graph for this function:

◆ k_breakout()

void k_breakout ( void )

Definition at line 104 of file akrnltaskblink.ino.

References pRun.

◆ k_sem_clip()

void k_sem_clip ( unsigned char nr,
int nrClip )

a function for overloading on usersite which is called when a semaphore is overflooding no occur - it's only reading out semaphore idendity Signal operations has not taken place ! 1: means first semahore allocated by user, 2 the next etc Interrupt is disabled when called and must not be enabled during.. so no print etc

Parameters
[in]nrid of semaphore 1,2,3,...
[in]nrClipnumber of times clip has occured (may be reset by call k_wait_lost)

Definition at line 94 of file akrnltaskblink.ino.

References cnt, and i.

◆ k_send_Q_clip()

void k_send_Q_clip ( unsigned char nr,
int nrClip )

breakout for k_send

a function for overloading on usersite which is called when a msgQ is overflooding no reset occur - it's only readind out smsgQ idendity 1: means first msgQ allocated by user etc Interrupt is disabled when called and must not be enabled during.. so no print etc

Parameters
[out]nr: id of send Q 0,1,2,...
[out]nrClipnumber of times clip has occured (may be reset by call k_receive and lost parm not eq NULL)

Definition at line 100 of file akrnltaskblink.ino.

References cnt, and i.

◆ loop()

void loop ( void )

Definition at line 116 of file akrnltaskblink.ino.

◆ lowprio()

void lowprio ( )

Definition at line 49 of file akrnltaskblink.ino.

References k_t::clip, k_set_sem_timer(), sem3, and TICKSPEED.

Here is the call graph for this function:

◆ medprio()

void medprio ( )

Definition at line 36 of file akrnltaskblink.ino.

References k_t::clip, k_set_sem_timer(), sem2, and TICKSPEED.

Here is the call graph for this function:

◆ setup()

void setup ( )

Definition at line 65 of file akrnltaskblink.ino.

References highprio(), i, k_crt_sem(), k_crt_task(), k_init(), k_start(), lowprio(), medprio(), pt1, pt2, pt3, sem1, sem2, sem3, st1, st2, st3, and STK.

Here is the call graph for this function:

Variable Documentation

◆ cnt

volatile int cnt = 0

Definition at line 11 of file akrnltaskblink.ino.

◆ pt1

struct k_t* pt1

Definition at line 3 of file akrnltaskblink.ino.

◆ pt2

struct k_t * pt2

Definition at line 3 of file akrnltaskblink.ino.

◆ pt3

struct k_t * pt3

Definition at line 3 of file akrnltaskblink.ino.

◆ sem1

struct k_t * sem1

Definition at line 3 of file akrnltaskblink.ino.

◆ sem2

struct k_t * sem2

Definition at line 3 of file akrnltaskblink.ino.

◆ sem3

struct k_t * sem3

Definition at line 3 of file akrnltaskblink.ino.

◆ st1

char st1[100]

Definition at line 9 of file akrnltaskblink.ino.

◆ st2

char st2[100]

Definition at line 9 of file akrnltaskblink.ino.

◆ st3

char st3[100]

Definition at line 9 of file akrnltaskblink.ino.