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] [July 2012 Threads] odd error in portmacro.hPosted by Jerry Durand on July 16, 2012 I was just setting up an LPC1754 job and received an odd error from the compiler. It didn't like this line: typedef unsigned portLONG portTickType; I had to change that section to make it work: #if( configUSE_16_BIT_TICKS == 1 ) typedef unsigned portSHORT portTickType; #define portMAX_DELAY ( portTickType ) 0xffff #else ;// this is here to keep compiler from complaining typedef unsigned portLONG portTickType; #define portMAX_DELAY ( portTickType ) 0xffffffff #endif
RE: odd error in portmacro.hPosted by Richard on July 16, 2012 You have not said which compiler you are using, or what the error was.
This code does however compile without any problem with many different compilers and for many different chips. Generally an error originating from a header file like this is a symptom on an error in the file from which the header file is being called.
Regards.
RE: odd error in portmacro.hPosted by Richard Damon on July 16, 2012 Having to put a ; like that is indicative that the statement before it is missing its ;
Check the end of the last file included previously by that header, or the statement just before the header was included.
The offending line may be quite a bit before as comments and preproccessor lines won't trigger the error message.
RE: odd error in portmacro.hPosted by Jerry Durand on July 16, 2012 LPCxpresso 4.2.3 [255]
And now that I'm awake, I found it... A sticky CTRL key on my new laptop left an "s" hanging at the end of a file when I tried to save it, I thought I'd fixed that.
Sorry for the trouble.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|