Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

serial communication on freertos

Posted by Nishant on May 28, 2009
Thanks a lot!
I have one query. While developing any application do we need use main.c provided in the demo or we can have our own. If we have to use already provided main.c are these functions required to be kept as it is :
prvSetupHardware();
vParTestInitialise();
vTaskStartScheduler();

or what changes we have to make in main.c?

Thanks.

RE: serial communication on freertos

Posted by Richard on May 28, 2009
You can write whatever code you like!

prvSetupHardware() - as the name suggests, this sets up the hardware to run the demo. If you want a different hardware setup, replace it with your own implementation.


vParTestInitialise() - this just initialises the IO for LEDs on the dev kit used for the demo. It is not important to the kernel itself, only demo tasks that access LEDs.

vTaskStartScheduler() - you must call that at some point. Please read the API documentation.

Regards.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




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

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS