Store beepTask handle during task creation in InterruptHandler_Init
This commit is contained in:
@@ -27,11 +27,10 @@ static void rfDecodeTask(void *pvParameters);
|
|||||||
*/
|
*/
|
||||||
void InterruptHandler_Init(void)
|
void InterruptHandler_Init(void)
|
||||||
{
|
{
|
||||||
beepSemaphore = xSemaphoreCreateBinary();
|
|
||||||
rfEventQueue = xQueueCreate(RF_QUEUE_SIZE, sizeof(RfEvent_t));
|
rfEventQueue = xQueueCreate(RF_QUEUE_SIZE, sizeof(RfEvent_t));
|
||||||
|
|
||||||
/* beepTask and rfDecodeTask do little work per activation — pin to Core 0 to keep Core 1 free for the main loop */
|
/* beepTask and rfDecodeTask do little work per activation — pin to Core 0 to keep Core 1 free for the main loop */
|
||||||
xTaskCreatePinnedToCore(beepTask, "beepTask", 2048, NULL, 5, NULL, 0);
|
xTaskCreatePinnedToCore(beepTask, "beepTask", 2048, NULL, 5, &beepTaskHandle, 0);
|
||||||
xTaskCreatePinnedToCore(rfDecodeTask, "rfTask", 3072, NULL, 4, NULL, 0);
|
xTaskCreatePinnedToCore(rfDecodeTask, "rfTask", 3072, NULL, 4, NULL, 0);
|
||||||
|
|
||||||
attachInterrupt(digitalPinToInterrupt(DIN_FUNK), pinLevelChangeIsr, CHANGE);
|
attachInterrupt(digitalPinToInterrupt(DIN_FUNK), pinLevelChangeIsr, CHANGE);
|
||||||
|
|||||||
Reference in New Issue
Block a user