1
0
mirror of https://github.com/elua/elua.git synced 2025-01-25 01:02:54 +08:00
This commit is contained in:
Martin Guy 2011-04-25 21:27:50 +02:00
parent 27d0ed361e
commit e1b80e55bb

View File

@ -342,7 +342,11 @@ void usart_reset(volatile avr32_usart_t *usart)
int usart_init_rs232(volatile avr32_usart_t *usart, const usart_options_t *opt, long pba_hz)
{
// Reset the USART and shutdown TX and RX.
// This is too brutal for eLua, for which the power-on reset state is OK.
// Otherwise a buffered serial port stops receiving when you change baud rate.
#ifndef ELUA_PLATFORM
usart_reset(usart);
#endif
// Check input values.
if (!opt || // Null pointer.