25volatile unsigned long last = 0;
27ISR(INT4_vect, ISR_NAKED) {
53 Serial.print(
"timeout "); Serial.println(t);
56 Serial.print(
"get msg "); Serial.print(res); Serial.print(
" lost since last "); Serial.println(lost);
71 Serial.println(
"just bef init part");
79 Serial.println(
"just bef k_start");
82 pinMode(2, INPUT_PULLUP);
90 EICRA |= (1 << ISC01);
102 Serial.println(
"If you see this then krnl didnt start :-( ");
char k_receive(struct k_msg_t *pB, void *el, int timeout, int *lost_msg)
char ki_send(struct k_msg_t *pB, void *el)
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_init(int nrTask, int nrSem, int nrMsg)
struct k_msg_t * k_crt_send_Q(int nr_el, int el_size, void *pBuf)
ISR(INT4_vect, ISR_NAKED)
volatile unsigned long last