From 667f32bd455ca3996d62514a2c16a7c3aa737bbf Mon Sep 17 00:00:00 2001 From: Piotr Esden-Tempski Date: Fri, 15 Jan 2010 00:03:29 +0100 Subject: Added USART_ prefix to bit definitions. This matches the new convention used throughout libopenstm32. --- examples/usart/usart.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/usart/usart.c b/examples/usart/usart.c index 7e34e58..922ec89 100644 --- a/examples/usart/usart.c +++ b/examples/usart/usart.c @@ -53,10 +53,10 @@ void usart_setup(void) /* Setup UART parameters. */ usart_set_baudrate(USART3, 38400); usart_set_databits(USART3, 8); - usart_set_stopbits(USART3, STOPBITS_1); - usart_set_mode(USART3, MODE_TX); - usart_set_parity(USART3, PARITY_NONE); - usart_set_flow_control(USART3, FLOWCONTROL_NONE); + usart_set_stopbits(USART3, USART_STOPBITS_1); + usart_set_mode(USART3, USART_MODE_TX); + usart_set_parity(USART3, USART_PARITY_NONE); + usart_set_flow_control(USART3, USART_FLOWCONTROL_NONE); /* Finally enable the USART. */ usart_enable(USART3); -- cgit v1.2.3