From 8faf353392d36256668ec4d09eef32c44d89072d Mon Sep 17 00:00:00 2001 From: Joseph Howarth Date: Fri, 9 Apr 2021 20:52:11 -0500 Subject: [PATCH] Slight fix to uart windows driver. Looks like this is fixed in later versions of csp. We should probably upgrade.... --- src/drivers/usart/usart_windows.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/drivers/usart/usart_windows.c b/src/drivers/usart/usart_windows.c index 91ffe87d5..2e561edf5 100644 --- a/src/drivers/usart/usart_windows.c +++ b/src/drivers/usart/usart_windows.c @@ -196,6 +196,12 @@ void usart_putstr(char* buf, int bufsz) { LeaveCriticalSection(&txSection); } +void usart_putc(char c) { + EnterCriticalSection(&txSection); + prvSendData(&c, 1); + LeaveCriticalSection(&txSection); +} + void usart_insert(char c, void *pxTaskWoken) { /* redirect debug output to stdout */ printf("%c", c);