45 Serial.print(
"1: did deliver "); Serial.println(
i);
48 Serial.print(
"1: no deliver:>>>>>>>>>>>>>>>>>< "); Serial.println(
i);
67 Serial.println(
"2: bef rcv");
75 Serial.print(
"2: received "); Serial.print( ii);
76 Serial.print(
" lost: "); Serial.println(lostM);
86 Serial.println(
"just bef init part");
100 Serial.println(
"just bef k_start");
104 Serial.println(
"If you see this then krnl didnt start :-( ");
int k_signal(struct k_t *sem)
Signal a semaphore w eventually task shift.
void k_eat_msec(unsigned int eatTime)
eat milliseconds - to mimik time consuming code
char k_receive(struct k_msg_t *pB, void *el, int timeout, int *lost_msg)
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
char k_send(struct k_msg_t *pB, void *el)
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)
struct k_msg_t * k_crt_send_Q(int nr_el, int el_size, void *pBuf)