This commit is contained in:
Ben V. Brown
2020-07-23 22:49:05 +10:00
parent ff65e6437b
commit f36e78f664
2 changed files with 4 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ public:
private:
static void Thread(const void *arg);
static osThreadId TaskHandle;
static const size_t TaskStackSize = 1536 / 3;
static const size_t TaskStackSize = 1536 / 2;
static uint32_t TaskBuffer[TaskStackSize];
static osStaticThreadDef_t TaskControlBlock;
static uint32_t waitForEvent(uint32_t mask, uint32_t ticksToWait =

View File

@@ -46,7 +46,9 @@ void InterruptHandler::Thread(const void *arg) {
while (true) {
/* If the INT_N line is low */
if (!notifSent) {
xTaskNotifyWait(0x00, 0x0F, NULL, 25);
if (xTaskNotifyWait(0x00, 0x0F, NULL, 25) == pdPASS) {
osDelay(1);
}
}
notifSent = false;
/* Read the FUSB302B status and interrupt registers */