Fixed parallel epd write bug
This commit is contained in:
+3
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user