I have a code error, but I'm not sure what happened to my casting and link.
BOOL xMBPortSerialPutByte( CHAR ucByte ) { CDC_Send_DATA(&((unsigned char)ucByte), 1);
CDC_Send_DATA is defined as:
uint32_t CDC_Send_DATA (uint8_t *ptrBuffer, uint8_t Send_length);
Here is the error message:
port/portserial.c:139:19: error: lvalue required as unary '&' operand
Hope someone can help. Thanks!
Shan source share