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] [October 2007 Threads] Submitting ModificationsPosted by Richard Damon on October 28, 2007 What is the procedure for submitting ideas/code for minor updates?
I am using FreeRTOS in a project using C++ and to get it to compile as a C routine, I need to add
#ifdef __cplusplus extern "C" { #endif
and
#ifdef __cplusplus } #endif
bracketing the definitions in include files.
In addition I change a few of the opaque type from
typedef void * xQueueHandle
to
typedef struct QueueDefinition * xQueueHandle;
which gets around some warnings on inconsistent types, while still keeping the definition opaque (since the struct definition is still not visable).
I would think these are reasonable changes to make in the code base for a future release.
RE: Submitting ModificationsPosted by Richard on October 29, 2007 Hi Richard,
Thanks for your suggestions.
With reference to the 'extern "C"' inclusion. I will add this into the next release (due in a couple of weeks or so). Could you send me your modified files so I get their positioning correct - I think they just need to be placed at the top and bottom of the header files but as I don't have any C++ projects setup I cannot test this. Please send the files to r _dot_ barry (at) freertos.org.
With reference to the void * used for the queue and task handles. You are right - this is a pain. Unfortunately it has to be done this way because it is the only method I have found that will happily go through all the various compilers that FreeRTOS.org is built with. The method suggested by yourself breaks the build with at least one compiler - from memory I think this is the C18 compiler from Microchip.
Thanks and regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|