Holding the button for interrupt source as intended

This commit is contained in:
Dominik Kotarski
2019-03-18 17:17:15 +01:00
parent 26c3bb37aa
commit 1fea89a600
5 changed files with 14618 additions and 34600 deletions
+8
View File
@@ -82,6 +82,7 @@ TaskHandle_t relayTask;
SemaphoreHandle_t getInterruptSourceSemaphore;
QueueHandle_t interruptSourceQueue;
QueueHandle_t interruptSourceQueueSecondary;
TimerHandle_t intFlagTimer;
/**
@@ -183,6 +184,13 @@ int main(void)
NRF_LOG_ERROR("ERROR, not enough space available to create queues!");
}
// todo: extract magic numbers into constants
intFlagTimer = xTimerCreate("IoexpanderInterruptTimer",
500, // timer period in ms
pdFALSE, // do not loop infinitely
(void *) 0, // timer id
intFlagTimerCallback); //timer callback
// Initialize state machine
pMenuState = new Intro1State();
pMenuState->displayOnEpd();