making USB serial conditional

This commit is contained in:
rusefi 2017-03-29 18:55:38 -04:00
parent 1bd29111ad
commit 89a0d7ce1e
2 changed files with 6 additions and 2 deletions

View File

@ -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 */

View File

@ -46,4 +46,4 @@ bool is_usb_serial_ready(void) {
return false;
}
#endif
#endif /* EFI_USB_SERIAL */