Repository: incubator-mynewt-core Updated Branches: refs/heads/develop c784c5dad -> f3a848d40
nrf51-blenano; fix build when UART_0 is not defined. 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/f3a848d4 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/f3a848d4 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/f3a848d4 Branch: refs/heads/develop Commit: f3a848d404ffcbb77561233cb289becdc5e06430 Parents: c784c5d Author: Marko Kiiskila <[email protected]> Authored: Wed Dec 28 11:55:22 2016 -0800 Committer: Marko Kiiskila <[email protected]> Committed: Wed Dec 28 11:55:22 2016 -0800 ---------------------------------------------------------------------- hw/bsp/nrf51-blenano/src/hal_bsp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/f3a848d4/hw/bsp/nrf51-blenano/src/hal_bsp.c ---------------------------------------------------------------------- diff --git a/hw/bsp/nrf51-blenano/src/hal_bsp.c b/hw/bsp/nrf51-blenano/src/hal_bsp.c index 63781b8..c8eb15f 100644 --- a/hw/bsp/nrf51-blenano/src/hal_bsp.c +++ b/hw/bsp/nrf51-blenano/src/hal_bsp.c @@ -30,10 +30,11 @@ #include "hal/hal_flash.h" #include "hal/hal_spi.h" #include "os/os_dev.h" + +#if MYNEWT_VAL(UART_0) #include "uart/uart.h" #include "uart_hal/uart_hal.h" -#if MYNEWT_VAL(UART_0) static struct uart_dev os_bsp_uart0; static const struct nrf51_uart_cfg os_bsp_uart0_cfg = { .suc_pin_tx = MYNEWT_VAL(UART_0_PIN_TX),
