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

Go to the source code of this file.

Macros

#define STKSIZE   100
#define TASKPRIO   10

Functions

void task ()
void setup ()
void loop ()
void k_sem_clip (unsigned char nr, int i)
void k_sem_noclip (unsigned char nr)
void k_breakout ()

Variables

char stak [100]
char stak2 [100]
struct k_tpTask
struct k_tpTask2
struct k_tsem1
volatile char reg = 0
unsigned char led13

Macro Definition Documentation

◆ STKSIZE

#define STKSIZE   100

Definition at line 10 of file k09.ino.

◆ TASKPRIO

#define TASKPRIO   10

Definition at line 12 of file k09.ino.

Function Documentation

◆ k_breakout()

void k_breakout ( void )

Definition at line 77 of file k09.ino.

References pRun, and reg.

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

References i, led13, and k_t::nr.

◆ k_sem_noclip()

void k_sem_noclip ( unsigned char nr)

Definition at line 66 of file k09.ino.

References led13, and k_t::nr.

◆ loop()

void loop ( void )

Definition at line 48 of file k09.ino.

◆ setup()

void setup ( )

Definition at line 32 of file k09.ino.

References i, k_crt_sem(), k_crt_task(), k_init(), k_start(), pTask, sem1, stak, STKSIZE, task, and TASKPRIO.

Here is the call graph for this function:

◆ task()

void task ( )

Definition at line 19 of file k09.ino.

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

Here is the call graph for this function:

Variable Documentation

◆ led13

unsigned char led13

Definition at line 57 of file k09.ino.

◆ pTask

struct k_t* pTask

Definition at line 15 of file k09.ino.

◆ pTask2

struct k_t * pTask2

Definition at line 15 of file k09.ino.

◆ reg

volatile char reg = 0

Definition at line 17 of file k09.ino.

◆ sem1

struct k_t * sem1

Definition at line 15 of file k09.ino.

◆ stak

char stak[100]

Definition at line 14 of file k09.ino.

◆ stak2

char stak2[100]

Definition at line 14 of file k09.ino.