From c9d998d14606bfb68893acdedff4c130aaf5646d Mon Sep 17 00:00:00 2001 From: Andrei Date: Wed, 24 May 2017 01:06:09 +0300 Subject: [PATCH] UART-DMA compile errors fix --- firmware/config/stm32f4ems/efifeatures.h | 1 + firmware/hw_layer/serial_over_usb/usbconsole.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/firmware/config/stm32f4ems/efifeatures.h b/firmware/config/stm32f4ems/efifeatures.h index c8c73f47cc..3b5c0012ba 100644 --- a/firmware/config/stm32f4ems/efifeatures.h +++ b/firmware/config/stm32f4ems/efifeatures.h @@ -251,6 +251,7 @@ // todo: add DMA-mode for Console & GPS? #if TS_UART_DMA_MODE +#undef EFI_UART_GPS #define EFI_UART_GPS FALSE #undef EFI_CONSOLE_UART_DEVICE #endif diff --git a/firmware/hw_layer/serial_over_usb/usbconsole.c b/firmware/hw_layer/serial_over_usb/usbconsole.c index 57547131ce..bba050b0af 100644 --- a/firmware/hw_layer/serial_over_usb/usbconsole.c +++ b/firmware/hw_layer/serial_over_usb/usbconsole.c @@ -30,11 +30,13 @@ void usb_serial_start(void) { chThdSleepMilliseconds(1500); usbStart(serusbcfg.usbp, &usbcfg); usbConnectBus(serusbcfg.usbp); - + +#if HAL_USE_SERIAL /* * Activates the serial driver 2 using the driver default configuration. */ sdStart(&SD2, NULL); +#endif } bool is_usb_serial_ready(void) {