FreeRTOS - Task Creation and Management
Identify the issue in the following FreeRTOS task creation code snippet:
TaskHandle_t xTaskHandle = NULL;
void vTask(void *pvParameters) {
for(;;) {
vTaskDelay(1000 / portTICK_PERIOD_MS);
}
}
int main() {
BaseType_t res = xTaskCreate(vTask, "Task", 1000, NULL, 1, &xTaskHandle);
if(res == pdPASS) {
vTaskResume(xTaskHandle);
}
return 0;
}