Quality RTOS & Embedded Software

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


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 ]    [ Privacy ]    [ Sitemap ]    [ ]


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

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

Xilinx Microblaze and Zynq partner