STM8 uart.c: Return mutex to allow multiple threads access to the UART.

This commit is contained in:
Kelvin Lawson
2010-05-03 12:57:41 +01:00
parent 9c5c8fbbb7
commit 18ffc47807

View File

@@ -67,7 +67,10 @@ char putchar (char c)
/* Loop until the end of transmission */
while (UART2_GetFlagStatus(UART2_FLAG_TXE) == RESET)
;
/* Return mutex access */
atomMutexPut(&uart_mutex);
}
return (c);