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] [May 2013 Threads]
Hi,
I want to use FreeRTOS in a Hercules TMS570 with CCSv5, and I used this port -> http://www.freertos.org/Free_RTOS_for_TI_RM48_and_TMS570.html
When I develop my task in C++ and include "FreeRTOS.h" from a C++ source file I get a compilation error in FreeRTOS\portable\CCS\ARM_Cortex-R4\portmacro.h because of the usage of pragma SWI_ALIAS.
I was reading the compiler manual, and a little difference in the pragma usage exists depending on whether you use C or C++
I replaced the line 120 in portmacro.h:
#pragma SWI_ALIAS( vPortYield, 0 )
by:
#ifdef __cplusplus
#pragma SWI_ALIAS( 0 )
#else
#pragma SWI_ALIAS( vPortYield, 0 )
#endif
I want to know if this modification is valid.
Thanks in advance!
I was hoping somebody else would answer this as I'm not a C++ user myself - but I would say if the modification compiles and provides the functionality you expect then it must be ok.
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.