Merge pull request #424 from andreika-git/uartdma2-fix

UART-DMA compile errors fix
This commit is contained in:
rusefi 2017-05-23 18:30:34 -04:00 committed by GitHub
commit 25a453f946
2 changed files with 4 additions and 1 deletions

View File

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

View File

@ -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) {