aboutsummaryrefslogtreecommitdiff
path: root/src/stm32/platform.c
diff options
context:
space:
mode:
authorGareth McMullin2011-12-29 12:49:47 +1300
committerGareth McMullin2011-12-29 12:49:47 +1300
commitedaae3957a90903b5bd92fa3575aafc79a4c0d12 (patch)
tree1d724dd9cc78b0c402ff5932127532ee84cafa6e /src/stm32/platform.c
parent4f0ed8361a07316544d1e666b0b1937d35726501 (diff)
Use USB Interface Association Descriptors.
This allows windows to see it as a composite device and load different driver for each interface.
Diffstat (limited to 'src/stm32/platform.c')
-rw-r--r--src/stm32/platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm32/platform.c b/src/stm32/platform.c
index 4dd6137..ba784c9 100644
--- a/src/stm32/platform.c
+++ b/src/stm32/platform.c
@@ -193,7 +193,7 @@ void uart_init(void)
GPIO_CNF_OUTPUT_ALTFN_PUSHPULL, GPIO9);
/* Setup UART parameters. */
- usart_set_baudrate(USART1, 38400, rcc_ppre2_frequency);
+ usart_set_baudrate(USART1, 38400);
usart_set_databits(USART1, 8);
usart_set_stopbits(USART1, USART_STOPBITS_1);
usart_set_mode(USART1, USART_MODE_TX_RX);