FreeRTOS

Description

Example which shows FreeRTOS operating system support.

Calling initialize hardware function

InitHardware();

Creating tasks

xTaskCreate(vEasywebTask, "EASYWEB", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 1, NULL);
xTaskCreate(vUSBTask, "USBHID", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 1, NULL);
Create LED tasks
xTaskCreate(vLEDTask, "LED_D2", configMINIMAL_STACK_SIZE, (void *)0x0100, tskIDLE_PRIORITY + 2, NULL);
xTaskCreate(vLEDTask, "LED_D3", configMINIMAL_STACK_SIZE, (void *)0x0201, tskIDLE_PRIORITY + 2, NULL);
xTaskCreate(vLEDTask, "LED_D4", configMINIMAL_STACK_SIZE, (void *)0x0302, tskIDLE_PRIORITY + 2, NULL);
xTaskCreate(vLEDTask, "LED_D5", configMINIMAL_STACK_SIZE, (void *)0x0403, tskIDLE_PRIORITY + 2, NULL);
xTaskCreate(vLEDTask, "LED_D6", configMINIMAL_STACK_SIZE, (void *)0x0504, tskIDLE_PRIORITY + 2, NULL);

Start the scheduler.

vTaskStartScheduler();
Английский