93 Serial.print(
"isr counter ");
115 Serial.begin(115200);
118 Serial.println(
"\n\njust bef init part");
131 pinMode(2, INPUT_PULLUP);
135 attachInterrupt(digitalPinToInterrupt(2),
myISR_Debounce, FALLING);
137 Serial.println(
"justr bef start");
141 Serial.println(
"If you see this then krnl didnt start :-( ");
unsigned long k_millis(void)
return no of millisec sincs start NB no leap seconds - its clean
unsigned long ki_millis(void)
returns no msec since start - no DI/EI lock Returns nr of milliseconds since krnl was started by k_st...
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)
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)
struct k_msg_t * k_crt_send_Q(int nr_el, int el_size, void *pBuf)