Holding the button for interrupt source as intended
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user