Quality RTOS & Embedded Software

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


Once-only actions in Task

Posted by Bill Den Beste on April 16, 2006
I am having a good time implementing various experiements in FreeRTOS on a Silabs C8051F120. I had no difficulty settinig up the Silabs IDE to work with the SDCC compiler. I love having a good hardware debugger! If anyone is having trouble with that setup, I might be able to help you out.

I have several tasks which must perform once-only actions prior to entering the for-ever loop. Can I assume that the FreeRTOS web page which describes task structure as:

void vATaskFunction( void *pvParameters )
for( ;; )
-- Task application code here. --

could correctly be modified to:

void vATaskFunction( void *pvParameters )
-- Once-only code here. --
for( ;; )
-- Task application code here. --

I can tell you that this works correctly in all of the cases I have tried so far. I would like to know if if is Kosher before implementing my final application.

- Bill Den Beste

RE: Once-only actions in Task

Posted by Richard on April 16, 2006
There is no problem with your suggestion for placing code prior to the for(;;) loop when implementing a task - note however it would not be ok to do this when implementing a co-routine.


[ 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.

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.


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


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