update to current library
Minor api changes required.
This commit is contained in:
@@ -70,7 +70,7 @@ static void usart_setup(void)
|
||||
/* Setup UART parameters. */
|
||||
usart_set_baudrate(USART1, 38400);
|
||||
usart_set_databits(USART1, 8);
|
||||
usart_set_stopbits(USART1, USART_CR2_STOP_1_0BIT);
|
||||
usart_set_stopbits(USART1, USART_CR2_STOPBITS_1);
|
||||
usart_set_mode(USART1, USART_MODE_TX);
|
||||
usart_set_parity(USART1, USART_PARITY_NONE);
|
||||
usart_set_flow_control(USART1, USART_FLOWCONTROL_NONE);
|
||||
|
||||
@@ -38,7 +38,7 @@ static void usart_setup(void)
|
||||
usart_set_baudrate(USART1, 38400);
|
||||
usart_set_databits(USART1, 8);
|
||||
usart_set_parity(USART1, USART_PARITY_NONE);
|
||||
usart_set_stopbits(USART1, USART_CR2_STOP_1_0BIT);
|
||||
usart_set_stopbits(USART1, USART_CR2_STOPBITS_1);
|
||||
usart_set_mode(USART1, USART_MODE_TX);
|
||||
usart_set_flow_control(USART1, USART_FLOWCONTROL_NONE);
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ static FILE *usart_setup(uint32_t dev)
|
||||
usart_set_baudrate(dev, 38400);
|
||||
usart_set_databits(dev, 8);
|
||||
usart_set_parity(dev, USART_PARITY_NONE);
|
||||
usart_set_stopbits(dev, USART_CR2_STOP_1_0BIT);
|
||||
usart_set_stopbits(dev, USART_CR2_STOPBITS_1);
|
||||
usart_set_mode(dev, USART_MODE_TX_RX);
|
||||
usart_set_flow_control(dev, USART_FLOWCONTROL_NONE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user