nucleo-f401re; fix build for bootloader.
#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]);
