FreeRTOS
 
Component FreeRTOS
FreeRTOS
Component Level: High
Typical Usage:
(Examples of a typical usage of the component in user code. For more information please see the page Component Code Typical Usage.)

Below is a typical code sequence with one task.
static portTASK_FUNCTION(myTask, pvParameters) {
  (void)pvParameters; /* The parameters are not used. */
  for(;;) {
    /* do something */
    FRTOS1_vTaskDelay(500/portTICK_RATE_MS); /* wait 500 ms */
  }
}

void RTOS_Start(void) {
  FRTOS1_xTaskCreate(myTask, (signed portCHAR *)"MyTask", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, (xTaskHandle *) NULL);
  FRTOS1_vTaskStartScheduler(); /* Start the scheduler. */
}