FreeRTOS - Design Patterns for RTOS
Find the bug in this shutdown notification code:
void Task(void *pvParameters) {
for (;;) {
ulTaskNotifyTake(pdFALSE, portMAX_DELAY);
if (shutdownRequested) {
break;
}
}
vTaskDelete(NULL);
}