nucleo-f401re; fix build for bootloader.
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/39e61255 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/39e61255 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/39e61255 Branch: refs/heads/develop Commit: 39e61255baa421670bc94015faad8eda0eb379ff Parents: 196cf7d Author: Marko Kiiskila <ma...@runtime.io> Authored: Thu Feb 2 14:58:36 2017 -0800 Committer: Marko Kiiskila <ma...@runtime.io> Committed: Thu Feb 2 14:58:36 2017 -0800 ---------------------------------------------------------------------- hw/bsp/nucleo-f401re/src/hal_bsp.c | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/39e61255/hw/bsp/nucleo-f401re/src/hal_bsp.c ---------------------------------------------------------------------- diff --git a/hw/bsp/nucleo-f401re/src/hal_bsp.c b/hw/bsp/nucleo-f401re/src/hal_bsp.c index 0d2b2eb..15a0c4b 100644 --- a/hw/bsp/nucleo-f401re/src/hal_bsp.c +++ b/hw/bsp/nucleo-f401re/src/hal_bsp.c @@ -19,8 +19,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> @@ -110,6 +112,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]);