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?
|
// todo: add DMA-mode for Console & GPS?
|
||||||
#if TS_UART_DMA_MODE
|
#if TS_UART_DMA_MODE
|
||||||
|
#undef EFI_UART_GPS
|
||||||
#define EFI_UART_GPS FALSE
|
#define EFI_UART_GPS FALSE
|
||||||
#undef EFI_CONSOLE_UART_DEVICE
|
#undef EFI_CONSOLE_UART_DEVICE
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -30,11 +30,13 @@ void usb_serial_start(void) {
|
||||||
chThdSleepMilliseconds(1500);
|
chThdSleepMilliseconds(1500);
|
||||||
usbStart(serusbcfg.usbp, &usbcfg);
|
usbStart(serusbcfg.usbp, &usbcfg);
|
||||||
usbConnectBus(serusbcfg.usbp);
|
usbConnectBus(serusbcfg.usbp);
|
||||||
|
|
||||||
|
#if HAL_USE_SERIAL
|
||||||
/*
|
/*
|
||||||
* Activates the serial driver 2 using the driver default configuration.
|
* Activates the serial driver 2 using the driver default configuration.
|
||||||
*/
|
*/
|
||||||
sdStart(&SD2, NULL);
|
sdStart(&SD2, NULL);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_usb_serial_ready(void) {
|
bool is_usb_serial_ready(void) {
|
||||||
|
|
Loading…
Reference in New Issue