void eskylinkInit() { if(isInit) return; nrfInit(); nrfSetInterruptCallback(interruptCallback); //vTaskSetApplicationTaskTag(0, (void*)TASK_RADIO_ID_NBR); /* Initialise the semaphores */ vSemaphoreCreateBinary(dataRdy); /* Queue init */ rxQueue = xQueueCreate(3, sizeof(CRTPPacket)); eskylinkInitPairing(); /* Launch the Radio link task */ xTaskCreate(eskylinkTask, (const signed char * const)ESKYLINK_TASK_NAME, ESKYLINK_TASK_STACKSIZE, NULL, ESKYLINK_TASK_PRI, NULL); isInit = true; }
void eskylinkInit() { if(isInit==TRUE) return; nrfInit(); nrfSetInterruptCallback(interruptCallback); //vTaskSetApplicationTaskTag(0, (void*)TASK_RADIO_ID_NBR); /* Initialise the semaphores */ vSemaphoreCreateBinary(dataRdy); /* Queue init */ rxQueue = xQueueCreate(3, sizeof(CRTPPacket)); eskylinkInitPairing(); /* Launch the Radio link task */ xTaskCreate(eskylinkTask, (const signed char * const)"EskyLink", configMINIMAL_STACK_SIZE, NULL, /*priority*/1, NULL); isInit = TRUE; }