projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Enable STM SYSCFG when routing EXTI
[fw/altos]
/
src
/
stm
/
ao_serial_stm.c
diff --git
a/src/stm/ao_serial_stm.c
b/src/stm/ao_serial_stm.c
index f8db6883bfc47a5fa2688cd745ca8f66468fc5e8..406da9fbb6739099c12fa4867eec61611a5f7a88 100644
(file)
--- a/
src/stm/ao_serial_stm.c
+++ b/
src/stm/ao_serial_stm.c
@@
-116,16
+116,16
@@
static const struct {
uint32_t brr;
} ao_usart_speeds[] = {
[AO_SERIAL_SPEED_4800] = {
uint32_t brr;
} ao_usart_speeds[] = {
[AO_SERIAL_SPEED_4800] = {
-
STM_APB
1 / 4800
+
AO_PCLK
1 / 4800
},
[AO_SERIAL_SPEED_9600] = {
},
[AO_SERIAL_SPEED_9600] = {
-
STM_APB
1 / 9600
+
AO_PCLK
1 / 9600
},
[AO_SERIAL_SPEED_19200] = {
},
[AO_SERIAL_SPEED_19200] = {
-
STM_APB
1 / 19200
+
AO_PCLK
1 / 19200
},
[AO_SERIAL_SPEED_57600] = {
},
[AO_SERIAL_SPEED_57600] = {
-
STM_APB
1 / 57600
+
AO_PCLK
1 / 57600
},
};
},
};
@@
-249,7
+249,7
@@
ao_serial2_set_speed(uint8_t speed)
struct ao_stm_usart ao_stm_usart3;
struct ao_stm_usart ao_stm_usart3;
-void stm_usart3_isr(void) { ao_usart_isr(&ao_stm_usart3, USE_SERIAL_
3
_STDIN); }
+void stm_usart3_isr(void) { ao_usart_isr(&ao_stm_usart3, USE_SERIAL_
2
_STDIN); }
char
ao_serial3_getchar(void)
char
ao_serial3_getchar(void)