From 45a77fb96e89060222458d654eda903908186edc Mon Sep 17 00:00:00 2001 From: rusefi Date: Wed, 29 Mar 2017 18:55:38 -0400 Subject: [PATCH] making USB serial conditional --- firmware/hw_layer/serial_over_usb/usbcfg.c | 6 +++++- firmware/hw_layer/serial_over_usb/usbconsole.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/firmware/hw_layer/serial_over_usb/usbcfg.c b/firmware/hw_layer/serial_over_usb/usbcfg.c index 262f3f6f2b..ee8e1c8f17 100644 --- a/firmware/hw_layer/serial_over_usb/usbcfg.c +++ b/firmware/hw_layer/serial_over_usb/usbcfg.c @@ -14,7 +14,9 @@ limitations under the License. */ -#include "hal.h" +#include "main.h" + +#if HAL_USE_SERIAL_USB || defined(__DOXYGEN__) /* Virtual serial port over USB.*/ SerialUSBDriver SDU1; @@ -334,3 +336,5 @@ const SerialUSBConfig serusbcfg = { USBD1_DATA_AVAILABLE_EP, USBD1_INTERRUPT_REQUEST_EP }; + +#endif /* EFI_USB_SERIAL */ diff --git a/firmware/hw_layer/serial_over_usb/usbconsole.c b/firmware/hw_layer/serial_over_usb/usbconsole.c index 29746e12a6..57547131ce 100644 --- a/firmware/hw_layer/serial_over_usb/usbconsole.c +++ b/firmware/hw_layer/serial_over_usb/usbconsole.c @@ -46,4 +46,4 @@ bool is_usb_serial_ready(void) { return false; } -#endif +#endif /* EFI_USB_SERIAL */