Fixed parallel epd write bug

This commit is contained in:
Dominik Kotarski
2019-03-26 12:53:11 +01:00
parent e758428c53
commit 5799593dfb
4 changed files with 15356 additions and 15120 deletions
+3 -1
View File
@@ -134,6 +134,7 @@ SemaphoreHandle_t getInterruptSourceSemaphore;
QueueHandle_t interruptSourceQueue;
QueueHandle_t interruptSourceQueueSecondary;
TimerHandle_t intFlagTimer;
SemaphoreHandle_t epdWriteMutex;
/**
* @brief Object defining current state of the Master Example
@@ -201,6 +202,7 @@ int main(void)
{
NRF_LOG_ERROR("ERROR, not enough space available to create semaphore!");
}
epdWriteMutex = xSemaphoreCreateMutex();
// Create all tasks that will be used
// getInterruptSource task needs higher priority to ensure prompt interrupt
@@ -245,7 +247,7 @@ int main(void)
// Initialize state machine
pMenuState = new Intro1State(State::EPD_WRITE_METHOD::FULL);
pMenuState->displayOnEpd();
// Activate deep sleep mode.
SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;