Skip to content

Commit

Permalink
Slight fix to uart windows driver.
Browse files Browse the repository at this point in the history
Looks like this is fixed in later versions of csp.
We should probably upgrade....
  • Loading branch information
joehowarth17 committed Apr 10, 2021
1 parent a5c4ee8 commit 8faf353
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/drivers/usart/usart_windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8faf353

Please sign in to comment.