Updated to the new locm3 changed to stdint types.
This commit is contained in:
@@ -43,7 +43,7 @@ static void usart_setup(void)
|
||||
// usart_set_baudrate(USART1, 38400);
|
||||
/* TODO usart_set_baudrate() doesn't support 24MHz clock (yet). */
|
||||
/* This is the equivalent: */
|
||||
USART_BRR(USART1) = (u16)((24000000 << 4) / (38400 * 16));
|
||||
USART_BRR(USART1) = (uint16_t)((24000000 << 4) / (38400 * 16));
|
||||
|
||||
usart_set_databits(USART1, 8);
|
||||
usart_set_stopbits(USART1, USART_STOPBITS_1);
|
||||
|
||||
Reference in New Issue
Block a user