You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2017/02/02 23:13:55 UTC

incubator-mynewt-core git commit: stm32f4discovery; allow building bootloader without uart0.

Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/1_0_0_b2_dev 39e61255b -> 2b124b676


stm32f4discovery; allow building bootloader without uart0.


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/2b124b67
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/2b124b67
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/2b124b67

Branch: refs/heads/1_0_0_b2_dev
Commit: 2b124b6765a87df1f26a93b6df90654c1376cbd9
Parents: 39e6125
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Thu Feb 2 15:12:52 2017 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Thu Feb 2 15:12:52 2017 -0800

----------------------------------------------------------------------
 hw/bsp/stm32f4discovery/src/hal_bsp.c | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/2b124b67/hw/bsp/stm32f4discovery/src/hal_bsp.c
----------------------------------------------------------------------
diff --git a/hw/bsp/stm32f4discovery/src/hal_bsp.c b/hw/bsp/stm32f4discovery/src/hal_bsp.c
index 696ecb8..5e5c3bd 100644
--- a/hw/bsp/stm32f4discovery/src/hal_bsp.c
+++ b/hw/bsp/stm32f4discovery/src/hal_bsp.c
@@ -21,8 +21,10 @@
 #include <syscfg/syscfg.h>
 
 #include <os/os_dev.h>
+#if MYNEWT_VAL(UART_0)
 #include <uart/uart.h>
 #include <uart_hal/uart_hal.h>
+#endif
 
 #include <hal/hal_bsp.h>
 #include <hal/hal_gpio.h>
@@ -88,6 +90,8 @@ hal_bsp_init(void)
 {
     int rc;
 
+    (void)rc;
+
 #if MYNEWT_VAL(UART_0)
     rc = os_dev_create((struct os_dev *) &hal_uart0, CONSOLE_UART,
       OS_DEV_INIT_PRIMARY, 0, uart_hal_init, (void *)&uart_cfg[0]);