Repository: incubator-mynewt-core Updated Branches: refs/heads/develop b774aa1b1 -> d6ed9cf97
frdm-k64f; allow building without any of the UARTs enabled. 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/e034e17a Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/e034e17a Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/e034e17a Branch: refs/heads/develop Commit: e034e17ab7f484a9a7dcd60c673e391ec9c31c69 Parents: b774aa1 Author: Marko Kiiskila <[email protected]> Authored: Thu Jan 12 15:05:59 2017 -0800 Committer: Marko Kiiskila <[email protected]> Committed: Thu Jan 12 15:05:59 2017 -0800 ---------------------------------------------------------------------- hw/bsp/frdm-k64f/src/hal_bsp.c | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/e034e17a/hw/bsp/frdm-k64f/src/hal_bsp.c ---------------------------------------------------------------------- diff --git a/hw/bsp/frdm-k64f/src/hal_bsp.c b/hw/bsp/frdm-k64f/src/hal_bsp.c index 0dd820f..bb4e1e9 100644 --- a/hw/bsp/frdm-k64f/src/hal_bsp.c +++ b/hw/bsp/frdm-k64f/src/hal_bsp.c @@ -29,9 +29,12 @@ #include "hal/hal_flash_int.h" #include "flash_map/flash_map.h" #include "hal/hal_flash.h" +#if MYNEWT_VAL(UART_0) || MYNEWT_VAL(UART_1) || MYNEWT_VAL(UART_2) || \ + MYNEWT_VAL(UART_3) || MYNEWT_VAL(UART_4) || MYNEWT_VAL(UART_5) #include "uart/uart.h" #include "uart_hal/uart_hal.h" #include "hal/hal_uart.h" +#endif #include "bsp/cmsis_nvic.h" #include "mcu/frdm-k64f_hal.h" #include "fsl_device_registers.h" @@ -158,6 +161,7 @@ hal_bsp_init(void) { int rc = 0; + (void)rc; // Init pinmux and other hardware setup. init_hardware(); BOARD_BootClockRUN();
