mirror of https://github.com/rusefi/rusefi.git
Refactoring: less confusion macro names around serial/uart/etc in connectivity fix #4999
This commit is contained in:
parent
083bafb3ba
commit
c1fea618f9
|
@ -272,7 +272,7 @@
|
||||||
#define TS_CAN_DEVICE_SHORT_PACKETS_IN_ONE_FRAME
|
#define TS_CAN_DEVICE_SHORT_PACKETS_IN_ONE_FRAME
|
||||||
|
|
||||||
#undef TS_PRIMARY_UxART_PORT
|
#undef TS_PRIMARY_UxART_PORT
|
||||||
#undef TS_SECONDARY_PORT
|
#undef TS_SECONDARY_UxART_PORT
|
||||||
|
|
||||||
#define EFI_USB_SERIAL TRUE
|
#define EFI_USB_SERIAL TRUE
|
||||||
#define EFI_CONSOLE_USB_DEVICE SDU1
|
#define EFI_CONSOLE_USB_DEVICE SDU1
|
||||||
|
|
|
@ -260,7 +260,7 @@
|
||||||
#define EFI_USE_UART_DMA FALSE
|
#define EFI_USE_UART_DMA FALSE
|
||||||
|
|
||||||
#define TS_PRIMARY_UxART_PORT UARTD2
|
#define TS_PRIMARY_UxART_PORT UARTD2
|
||||||
#undef TS_SECONDARY_PORT
|
#undef TS_SECONDARY_UxART_PORT
|
||||||
|
|
||||||
#define EFI_CONSOLE_TX_BRAIN_PIN Gpio::A10
|
#define EFI_CONSOLE_TX_BRAIN_PIN Gpio::A10
|
||||||
#define EFI_CONSOLE_RX_BRAIN_PIN Gpio::A11
|
#define EFI_CONSOLE_RX_BRAIN_PIN Gpio::A11
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
#undef EFI_UART_GPS
|
#undef EFI_UART_GPS
|
||||||
#define EFI_UART_GPS FALSE
|
#define EFI_UART_GPS FALSE
|
||||||
|
|
||||||
#undef TS_SECONDARY_PORT
|
#undef TS_SECONDARY_UxART_PORT
|
||||||
|
|
||||||
#undef EFI_BLUETOOTH_SETUP
|
#undef EFI_BLUETOOTH_SETUP
|
||||||
#define EFI_BLUETOOTH_SETUP TRUE
|
#define EFI_BLUETOOTH_SETUP TRUE
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#define TS_PRIMARY_UxART_PORT SD1
|
#define TS_PRIMARY_UxART_PORT SD1
|
||||||
|
|
||||||
// no secondary channel
|
// no secondary channel
|
||||||
#undef TS_SECONDARY_PORT
|
#undef TS_SECONDARY_UxART_PORT
|
||||||
|
|
||||||
/* Knock detection */
|
/* Knock detection */
|
||||||
#undef EFI_HIP_9011
|
#undef EFI_HIP_9011
|
||||||
|
|
|
@ -398,7 +398,7 @@
|
||||||
#define TS_PRIMARY_UxART_PORT UARTD3
|
#define TS_PRIMARY_UxART_PORT UARTD3
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#undef TS_SECONDARY_PORT
|
#undef TS_SECONDARY_UxART_PORT
|
||||||
|
|
||||||
#define AUX_SERIAL_DEVICE (&SD6)
|
#define AUX_SERIAL_DEVICE (&SD6)
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#define HAS_UxART_PRIMARY false
|
#define HAS_UxART_PRIMARY false
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (!TS_NO_SECONDARY && defined(TS_SECONDARY_PORT))
|
#if (!TS_NO_SECONDARY && defined(TS_SECONDARY_UxART_PORT))
|
||||||
#define HAS_UxART_SECONDARY true
|
#define HAS_UxART_SECONDARY true
|
||||||
#else
|
#else
|
||||||
#define HAS_UxART_SECONDARY false
|
#define HAS_UxART_SECONDARY false
|
||||||
|
|
|
@ -59,16 +59,16 @@ class SerialTsChannel;
|
||||||
#endif // HAS_UxART_PRIMARY
|
#endif // HAS_UxART_PRIMARY
|
||||||
|
|
||||||
#if HAS_UxART_SECONDARY
|
#if HAS_UxART_SECONDARY
|
||||||
#ifdef TS_SECONDARY_PORT
|
#ifdef TS_SECONDARY_UxART_PORT
|
||||||
std::conditional_t<
|
std::conditional_t<
|
||||||
std::is_same_v<decltype(TS_SECONDARY_PORT), UARTDriver>,
|
std::is_same_v<decltype(TS_SECONDARY_UxART_PORT), UARTDriver>,
|
||||||
#if EFI_USE_UART_DMA
|
#if EFI_USE_UART_DMA
|
||||||
UartDmaTsChannel,
|
UartDmaTsChannel,
|
||||||
#else // EFI_USE_UART_DMA
|
#else // EFI_USE_UART_DMA
|
||||||
UartTsChannel,
|
UartTsChannel,
|
||||||
#endif // EFI_USE_UART_DMA
|
#endif // EFI_USE_UART_DMA
|
||||||
SerialTsChannel> secondaryChannel(TS_SECONDARY_PORT);
|
SerialTsChannel> secondaryChannel(TS_SECONDARY_UxART_PORT);
|
||||||
#endif // TS_SECONDARY_PORT
|
#endif // TS_SECONDARY_UxART_PORT
|
||||||
|
|
||||||
|
|
||||||
struct SecondaryChannelThread : public TunerstudioThread {
|
struct SecondaryChannelThread : public TunerstudioThread {
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
// see SIM_SD1_PORT and SIM_SD2_PORT
|
// see SIM_SD1_PORT and SIM_SD2_PORT
|
||||||
#define TS_PRIMARY_UxART_PORT SD1
|
#define TS_PRIMARY_UxART_PORT SD1
|
||||||
#define TS_SECONDARY_PORT SD2
|
#define TS_SECONDARY_UxART_PORT SD2
|
||||||
|
|
||||||
#define EFI_ENABLE_ASSERTS TRUE
|
#define EFI_ENABLE_ASSERTS TRUE
|
||||||
#define EFI_LAUNCH_CONTROL TRUE
|
#define EFI_LAUNCH_CONTROL TRUE
|
||||||
|
|
Loading…
Reference in New Issue