83 Serial.print(
" - ret from k_wait: "); Serial.println(
er2);
94 unsigned int loopNrCpy;
110 Serial.begin(115200);
112 for (
int i = 8 ;
i < 14;
i++) {
114 digitalWrite(
i, LOW);
130 Serial.print(
"ups an error occured: "); Serial.println(res);
143 PORTB = (1 <<
pRun->nr);
void k_eat_msec(unsigned int eatTime)
eat milliseconds - to mimik time consuming code
int k_sleep(int time)
let task sleep for a number of milliseconds
int k_wait(struct k_t *sem, int timeout)
stand wait on semaphore call with timeout facility
struct k_t * k_crt_task(void(*pTask)(void), char prio, char *pStk, int stkSize)
create a task - only to be called before k_start creates a task and put it in the active Q
int k_set_sem_timer(struct k_t *sem, int val)
attach a periodic timer to a semaphore, to be used for realtime
struct k_t * k_crt_sem(int init_val, int maxvalue)
change task priority and reinserts it in task Q and do a task shift
int k_init(int nrTask, int nrSem, int nrMsg)