77 Serial.println(
"task shit test for Krnl by JDN");
81 Serial.print(
" 10000 * 10 * 2 (200.000) task shifts in ...(millisec) ");
83 Serial.print(
"One task shift(micro sec) "); Serial.println(t * 1000 / 200000);
unsigned long k_millis(void)
return no of millisec sincs start NB no leap seconds - its clean
int k_signal(struct k_t *sem)
Signal a semaphore w eventually task shift.
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
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)