Add binary printing and reading/parsing from serial

This commit is contained in:
Allen Hill
2023-09-15 18:43:41 -04:00
parent cabcd06e67
commit ebb5ec95ca
5 changed files with 163 additions and 73 deletions
+7
View File
@@ -69,6 +69,13 @@ void RS232_SendByte(uint8_t Data) {
USART0_TXDATAL = Data; // send character
}
void RS232_sendbytes(const uint8_t *bytes, uint8_t len) {
const uint8_t *end = bytes + len;
while (bytes < end) {
RS232_SendByte(*bytes++);
}
}
void RS232_Print(const char *pBuf) {
register uint8_t c;
while ((c = *pBuf++)) {