Embedded C UART conventions
问题 I need advice on proper way of handling UART communication. I feel like I've done handling sending serial commands over UART well but I don't know if the way I'm parsing the response or receiving serial data is the best way to do it. Any tips are appreciated but I just want to know if there's a better more and elegant way to parse UART RX. This is for an MSP430 uC by the way... First I have these declared in the header file: const unsigned char *UART_TX_Buffer; unsigned char UART_TX_Index;