Download FreeRTOS

Quality RTOS & Embedded Software

FreeRTOS website now available in Simplified Chinese
New FreeRTOS Long Term Support version now available.
FreeRTOS Extended Maintenance Program (EMP) registration now open.
FreeRTOS-Plus-TCP v3.0.0 released:
Featured FreeRTOS IoT Integrations:

[RTOS Kernel Control]

task. h
void vTaskStartScheduler( void );

Starts the RTOS scheduler. After calling the RTOS kernel has control over which tasks are executed and when.

The idle task and optionally the timer daemon task are created automatically when the RTOS scheduler is started.

vTaskStartScheduler() will only return if there is insufficient RTOS heap available to create the idle or timer daemon tasks.

All the RTOS demo application projects contain examples of using vTaskStartScheduler(), normally in the main() function within main.c.

Example usage:

void vAFunction( void ) { // Tasks can be created before or after starting the RTOS scheduler xTaskCreate( vTaskCode, "NAME", STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );

// Start the real time scheduler. vTaskStartScheduler();

// Will not get here unless there is insufficient RAM. }

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.