FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [April 2006 Threads] Once-only actions in TaskPosted 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.
Thanks. - Bill Den Beste
RE: Once-only actions in TaskPosted 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.
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|