Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

FREERTOS+CLI

Posted by Ganesh on July 5, 2013
Hai Every One

Please help me
I am doing on FreeRTOS+CLI, I have been getting ERROR

syntax error: token -> \'*\' ; column 24


typedef portBASE_TYPE (*pdCOMMAND_LINE_CALLBACK)( int8_t *pcWriteBuffer, size_t xWriteBufferLen, const int8_t * pcCommandString );

/* The structure that defines command line commands. A command line command
should be defined by declaring a const structure of this type. */
typedef struct xCOMMAND_LINE_INPUT
{
const int8_t * const pcCommand;/* The command that causes pxCommandInterpreter to be executed. For example \"help\". Must be all lower case. */
const int8_t * const pcHelpString;/* String that describes how to use the command. Should start with the command itself, and end with \"\\r\\n\". For example \"help: Returns a list of all the commands\\r\\n\". */
const pdCOMMAND_LINE_CALLBACK pxCommandInterpreter;/* A pointer to the callback function that will return the output generated by the command. */
int8_t cExpectedNumberOfParameters;/* Commands expect a fixed number of parameters, which may be zero. */
} CLI_Command_Definition_t;


Thanks For Advance

RE: FREERTOS+CLI

Posted by Dave on July 5, 2013
Please also tell us which line in the code the error is generated by.

Which compiler are you using and do you have stdint.h and FreeRTOS_CLI.h #included?

RE: FREERTOS+CLI

Posted by Ganesh on July 5, 2013
Thanks for giving reply
I am getting ERROR below line
typedef portBASE_TYPE (*pdCOMMAND_LINE_CALLBACK)( int8_t *pcWriteBuffer, size_t xWriteBufferLen, const int8_t * pcCommandString );

I included all header files and i am using SDCC2.5.0 Compiler Please give me solution or else how to implement the FREERTOS+CLI source code completely.

RE: FREERTOS+CLI

Posted by Richard on July 5, 2013
[I have deleted your last post because you included your personal email addresses. I do not allow plain text email addresses because it attracts spam. Also for the good of the whole community support requests should be concluded here, not via personal email]

Provided you have included FreeRTOS.h, stdint.h and FreeRTOS_CLI.h then there is nothing wrong with that line of code. Does SDCC provide support for function pointers?

The SDCC compiler you are using is very old and maybe newer versions will not have a problem, although the current Silicon Labs port in FreeRTOS has not maintained support for newer versions (this has been a 'known issue' for several years).

Regards.

RE: FREERTOS+CLI

Posted by Ganesh on July 5, 2013
Sorry for posted my personal Email.
Coding is not a problem. SDCC Compiler is a problem.
So which compiler will support to silabs. Please reply me

RE: FREERTOS+CLI

Posted by Ganesh on July 5, 2013
Yes exactly,I am getting a problem at Function-Pointer how can i solve this problem.
SDCC will support the function-pointers.

RE: FREERTOS+CLI

Posted by Ganesh on July 5, 2013
Thanks all for outstanding support

RE: FREERTOS+CLI

Posted by Ganesh on July 5, 2013
Thanks all for outstanding support


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists