I have following code
Using microcontrollers
I get following errors:Code:#define MALLOC(size) pvBosMemAlloc( size ) #define FREE ( a ) bBosMemFree ( a ) typedef struct { uint8 i; char ch[6]; }mine; uint8 zcl_SendCommand(mine *pMsg) { mine *rcv; rcv = MALLOC(sizeof(mine)); //Some code FREE (rcv); }
Source\zcl.c:267: error: 'a' undeclared (first use in this function)
Source\zcl.c:267: error: (Each undeclared identifier is reported only once
Source\zcl.c:267: error: for each function it appears in.)
Source\zcl.c:267: error: expected ';' before 'bBosMemFree'
What may be wrong with the code.....
Thanks



LinkBack URL
About LinkBacks



