27 digitalWrite(13,flag);
51#if defined (__AVR_ATmega2560__) || defined (__AVR_ATmega1280__)
52ISR(INT4_vect,ISR_NAKED) {
54ISR(INT0_vect, ISR_NAKED) {
76#if defined (__AVR_ATmega2560__) || defined (__AVR_ATmega1280__)
79 EICRB |= (1 << ISC41);
82 EICRA |= (1 << ISC01);
102 Serial.println(
"just bef");
int ki_signal(struct k_t *sem)
signal a semaphore from AN ISR - no task shift , do not enable intr,...
int k_sleep(int time)
let task sleep for a number of milliseconds
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)
ISR(INT0_vect, ISR_NAKED)