command-line default flexibility

This commit is contained in:
rusefi 2017-04-16 12:57:48 -04:00
parent 9a28acb512
commit fdc74dd5ea
1 changed files with 13 additions and 3 deletions

View File

@ -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