From fdc74dd5eac8dbd06322084b27dc5cb3879138ab Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 16 Apr 2017 12:57:48 -0400 Subject: [PATCH] command-line default flexibility --- firmware/config/stm32f4ems/efifeatures.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/firmware/config/stm32f4ems/efifeatures.h b/firmware/config/stm32f4ems/efifeatures.h index 782393d4a2..22b676b13b 100644 --- a/firmware/config/stm32f4ems/efifeatures.h +++ b/firmware/config/stm32f4ems/efifeatures.h @@ -239,15 +239,25 @@ */ -// todo: start using consoleUartDevice +// todo: start using consoleUartDevice? Not sure +#ifndef EFI_CONSOLE_UART_DEVICE #define EFI_CONSOLE_UART_DEVICE (&SD3) +#endif -// todo: start using consoleSerialTxPin +// todo: start using consoleSerialTxPin? Not sure +#ifndef EFI_CONSOLE_TX_PORT #define EFI_CONSOLE_TX_PORT GPIOC +#endif +#ifndef EFI_CONSOLE_TX_PIN #define EFI_CONSOLE_TX_PIN 10 -// todo: start using consoleSerialRxPin +#endif +// todo: start using consoleSerialRxPin? Not sure +#ifndef EFI_CONSOLE_RX_PORT #define EFI_CONSOLE_RX_PORT GPIOC +#endif +#ifndef EFI_CONSOLE_RX_PIN #define EFI_CONSOLE_RX_PIN 11 +#endif // todo: this should be detected automatically based on pin selection #define EFI_CONSOLE_AF 7