Skip to content

Commit 8faf353

Browse files
committed
Slight fix to uart windows driver.
Looks like this is fixed in later versions of csp. We should probably upgrade....
1 parent a5c4ee8 commit 8faf353

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/drivers/usart/usart_windows.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,12 @@ void usart_putstr(char* buf, int bufsz) {
196196
LeaveCriticalSection(&txSection);
197197
}
198198

199+
void usart_putc(char c) {
200+
EnterCriticalSection(&txSection);
201+
prvSendData(&c, 1);
202+
LeaveCriticalSection(&txSection);
203+
}
204+
199205
void usart_insert(char c, void *pxTaskWoken) {
200206
/* redirect debug output to stdout */
201207
printf("%c", c);

0 commit comments

Comments
 (0)