Merge pull request #424 from andreika-git/uartdma2-fix
UART-DMA compile errors fix
This commit is contained in:
commit
25a453f946
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue