UART DMA for "primary" connector #1528

This commit is contained in:
rusefi 2020-06-22 00:25:19 -04:00
parent ee88418ea3
commit 282b5af92b
1 changed files with 9 additions and 2 deletions

View File

@ -221,7 +221,16 @@ bool isUsbSerial(BaseChannel * channel) {
#endif
}
ts_channel_s primaryChannel;
BaseChannel * getConsoleChannel(void) {
#if PRIMARY_UART_DMA_MODE
if (primaryChannel.uartp != nullptr) {
// primary channel is in DMA mode - we do not have a stream implementation for this.
return nullptr;
}
#endif
#if defined(EFI_CONSOLE_SERIAL_DEVICE)
return (BaseChannel *) EFI_CONSOLE_SERIAL_DEVICE;
#endif /* EFI_CONSOLE_SERIAL_DEVICE */
@ -244,8 +253,6 @@ bool isCommandLineConsoleReady(void) {
#if !defined(EFI_CONSOLE_NO_THREAD)
ts_channel_s primaryChannel;
static THD_WORKING_AREA(consoleThreadStack, 3 * UTILITY_THREAD_STACK_SIZE);
static THD_FUNCTION(consoleThreadEntryPoint, arg) {
(void) arg;