mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject [3/5] incubator-mynewt-core git commit: stm32f4xx uart; add extra parameter to hal_gpio_init_af().
Date Mon, 10 Oct 2016 19:06:27 GMT
stm32f4xx uart; add extra parameter to hal_gpio_init_af().


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/9cbb93c3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/9cbb93c3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/9cbb93c3

Branch: refs/heads/develop
Commit: 9cbb93c31964d77ec140d963f7a9be93edc6ab96
Parents: 6b7140d
Author: Marko Kiiskila <marko@runtime.io>
Authored: Mon Oct 10 11:59:28 2016 -0700
Committer: Marko Kiiskila <marko@runtime.io>
Committed: Mon Oct 10 11:59:28 2016 -0700

----------------------------------------------------------------------
 hw/mcu/stm/stm32f4xx/src/hal_uart.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/9cbb93c3/hw/mcu/stm/stm32f4xx/src/hal_uart.c
----------------------------------------------------------------------
diff --git a/hw/mcu/stm/stm32f4xx/src/hal_uart.c b/hw/mcu/stm/stm32f4xx/src/hal_uart.c
index 5b3280c..bd248ec 100644
--- a/hw/mcu/stm/stm32f4xx/src/hal_uart.c
+++ b/hw/mcu/stm/stm32f4xx/src/hal_uart.c
@@ -351,11 +351,11 @@ hal_uart_config(int port, int32_t baudrate, uint8_t databits, uint8_t
stopbits,
 
     *cfg->suc_rcc_reg |= cfg->suc_rcc_dev;
 
-    hal_gpio_init_af(cfg->suc_pin_tx, cfg->suc_pin_af, 0);
-    hal_gpio_init_af(cfg->suc_pin_rx, cfg->suc_pin_af, 0);
+    hal_gpio_init_af(cfg->suc_pin_tx, cfg->suc_pin_af, 0, 0);
+    hal_gpio_init_af(cfg->suc_pin_rx, cfg->suc_pin_af, 0, 0);
     if (flow_ctl == HAL_UART_FLOW_CTL_RTS_CTS) {
-        hal_gpio_init_af(cfg->suc_pin_rts, cfg->suc_pin_af, 0);
-        hal_gpio_init_af(cfg->suc_pin_cts, cfg->suc_pin_af, 0);
+        hal_gpio_init_af(cfg->suc_pin_rts, cfg->suc_pin_af, 0, 0);
+        hal_gpio_init_af(cfg->suc_pin_cts, cfg->suc_pin_af, 0, 0);
     }
 
     u->u_regs = cfg->suc_uart;


Mime
View raw message