mirror of https://github.com/rusefi/rusefi-1.git
UART DMA for "primary" connector #1528
This commit is contained in:
parent
8aa5126a59
commit
cee465b963
|
@ -211,6 +211,8 @@ static const struct BaseChannelVMT uartChannelVmt = {
|
||||||
static const BaseChannel uartChannel = { .vmt = &uartChannelVmt };
|
static const BaseChannel uartChannel = { .vmt = &uartChannelVmt };
|
||||||
#endif /* EFI_CONSOLE_UART_DEVICE */
|
#endif /* EFI_CONSOLE_UART_DEVICE */
|
||||||
|
|
||||||
|
ts_channel_s primaryChannel;
|
||||||
|
|
||||||
#if EFI_PROD_CODE || EFI_EGT
|
#if EFI_PROD_CODE || EFI_EGT
|
||||||
|
|
||||||
bool isUsbSerial(BaseChannel * channel) {
|
bool isUsbSerial(BaseChannel * channel) {
|
||||||
|
@ -220,9 +222,6 @@ bool isUsbSerial(BaseChannel * channel) {
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
ts_channel_s primaryChannel;
|
|
||||||
|
|
||||||
BaseChannel * getConsoleChannel(void) {
|
BaseChannel * getConsoleChannel(void) {
|
||||||
#if PRIMARY_UART_DMA_MODE
|
#if PRIMARY_UART_DMA_MODE
|
||||||
if (primaryChannel.uartp != nullptr) {
|
if (primaryChannel.uartp != nullptr) {
|
||||||
|
|
Loading…
Reference in New Issue