Repository: incubator-mynewt-core Updated Branches: refs/heads/master 25850ad6c -> e23872dc6
nrf51dk bsp - Fix build when UARTs disabled. Note: bit banger (UART 1) appears to be disabled for this BSP. 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/e23872dc Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/e23872dc Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/e23872dc Branch: refs/heads/master Commit: e23872dc683d6a54a00635384dae8c7b78522f99 Parents: 25850ad Author: Christopher Collins <[email protected]> Authored: Fri Apr 7 16:27:06 2017 -0700 Committer: Christopher Collins <[email protected]> Committed: Fri Apr 7 16:28:51 2017 -0700 ---------------------------------------------------------------------- hw/bsp/nrf51dk/src/hal_bsp.c | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/e23872dc/hw/bsp/nrf51dk/src/hal_bsp.c ---------------------------------------------------------------------- diff --git a/hw/bsp/nrf51dk/src/hal_bsp.c b/hw/bsp/nrf51dk/src/hal_bsp.c index 17b06d1..b9b40be 100644 --- a/hw/bsp/nrf51dk/src/hal_bsp.c +++ b/hw/bsp/nrf51dk/src/hal_bsp.c @@ -31,8 +31,12 @@ #include "hal/hal_flash.h" #include "hal/hal_spi.h" #include "hal/hal_i2c.h" +#if MYNEWT_VAL(UART_0) || MYNEWT_VAL(UART_1) #include "uart/uart.h" +#endif +#if MYNEWT_VAL(UART_0) #include "uart_hal/uart_hal.h" +#endif #if MYNEWT_VAL(UART_0) static struct uart_dev os_bsp_uart0;
