FreeRTOS - Task Creation and Management
What will be the output of this code snippet?
TaskHandle_t xHandle = NULL;
void vTaskCode(void * pvParameters) {
for(;;) {
vTaskDelay(1000 / portTICK_PERIOD_MS);
}
}
int main() {
xTaskCreate(vTaskCode, "Task1", 1000, NULL, 1, &xHandle);
if(xHandle != NULL) {
printf("Task created successfully\n");
} else {
printf("Task creation failed\n");
}
return 0;
}
