37 digitalWrite(13,flag);
63#if defined (__AVR_ATmega2560__) || defined (__AVR_ATmega1280__)
64ISR(INT4_vect,ISR_NAKED) {
66ISR(INT0_vect, ISR_NAKED) {
93#if defined (__AVR_ATmega2560__) || defined (__AVR_ATmega1280__)
96 EICRB |= (1 << ISC41);
99 EICRA |= (1 << ISC01);
119 Serial.print(
"start ");
124 Serial.println(
"bef gogo");
127 Serial.println(
"shit - should not come here");
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
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)
volatile unsigned long nowISR
ISR(INT0_vect, ISR_NAKED)