I'm getting a string from a terminal.
if (bDeviceState == CONFIGURED)
/*Check to see if we have data yet */
if (Receive_length != 0)
if (packet_sent == 1)
CDC_Send_DATA ((unsigned char*)Receive_Buffer,Receive_length);
Receive_length = 0;
And I see in Receive_Buffer my string. But I want to evaluate every char and to format a string as I need. For example I want to trim all '\n' and '\r' on reception level.
I didn't find a function I get chars from terminal. Where should it be?