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
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.
Coding is not a problem. SDCC Compiler is a problem.
So which compiler will support to silabs. Please reply me
SDCC will support the function-pointers.