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

Go to the source code of this file.

Macros

#define STKSIZE   100
#define TASKPRIO   10

Functions

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

Variables

char stak [100]
char stak2 [100]
struct k_tpTask
struct k_tpTask2
unsigned char led13

Macro Definition Documentation

◆ STKSIZE

#define STKSIZE   100

Definition at line 8 of file k02.ino.

Referenced by setup().

◆ TASKPRIO

#define TASKPRIO   10

Definition at line 10 of file k02.ino.

Function Documentation

◆ k_breakout()

void k_breakout ( void )

Definition at line 78 of file k02.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 60 of file k02.ino.

References i, led13, and k_t::nr.

◆ k_sem_unclip()

void k_sem_unclip ( unsigned char nr)

Definition at line 67 of file k02.ino.

References led13, and k_t::nr.

◆ loop()

void loop ( void )

Definition at line 50 of file k02.ino.

◆ setup()

void setup ( )

Definition at line 35 of file k02.ino.

References i, k_crt_task(), k_init(), k_start(), pTask, pTask2, stak, stak2, STKSIZE, task, task2(), and TASKPRIO.

Here is the call graph for this function:

◆ task()

void task ( )

Definition at line 15 of file k02.ino.

◆ task2()

void task2 ( )

Definition at line 25 of file k02.ino.

Variable Documentation

◆ led13

unsigned char led13

Definition at line 59 of file k02.ino.

Referenced by k_breakout(), k_sem_clip(), k_sem_noclip(), k_sem_unclip(), and lowprio().

◆ pTask

struct k_t* pTask

Definition at line 13 of file k02.ino.

◆ pTask2

struct k_t * pTask2

Definition at line 13 of file k02.ino.

◆ stak

char stak

Definition at line 12 of file k02.ino.

Referenced by setup().

◆ stak2

char stak2[100]

Definition at line 12 of file k02.ino.