enable serial pins on proteus (#2507)
* enable serial on proteus * make h7 happy
This commit is contained in:
parent
f0cf4f38ff
commit
7cd79820da
|
@ -28,7 +28,15 @@ ifneq ($(PROJECT_CPU),ARCH_STM32H7)
|
|||
DDEFS += -DEFI_SOFTWARE_KNOCK=TRUE
|
||||
endif
|
||||
|
||||
DDEFS += -DEFI_CONSOLE_TX_BRAIN_PIN=GPIO_UNASSIGNED -DEFI_CONSOLE_RX_BRAIN_PIN=GPIO_UNASSIGNED
|
||||
# disable hardware serial ports on H7
|
||||
ifeq ($(PROJECT_CPU),ARCH_STM32H7)
|
||||
DDEFS += -DTS_NO_PRIMARY -DTS_NO_SECONDARY
|
||||
else
|
||||
# Hardware serial port on UART 2 -> PD5/PD6
|
||||
DDEFS += -DSTM32_UART_USE_USART2=TRUE
|
||||
DDEFS += -DTS_PRIMARY_UART=UARTD2
|
||||
DDEFS += -DEFI_CONSOLE_TX_BRAIN_PIN=GPIOD_5 -DEFI_CONSOLE_RX_BRAIN_PIN=GPIOD_6
|
||||
endif
|
||||
|
||||
# We are running on Proteus hardware!
|
||||
DDEFS += -DHW_PROTEUS=1
|
||||
|
|
|
@ -352,7 +352,10 @@
|
|||
#define EFI_USE_UART_DMA TRUE
|
||||
#endif
|
||||
|
||||
#ifndef TS_PRIMARY_UART
|
||||
#define TS_PRIMARY_UART UARTD3
|
||||
#endif
|
||||
|
||||
#undef TS_SECONDARY_UART
|
||||
|
||||
#define AUX_SERIAL_DEVICE (&SD6)
|
||||
|
|
|
@ -200,7 +200,7 @@
|
|||
* SERIAL driver system settings.
|
||||
*/
|
||||
#define STM32_SERIAL_USE_USART1 TRUE
|
||||
#define STM32_SERIAL_USE_USART2 TRUE
|
||||
#define STM32_SERIAL_USE_USART2 FALSE
|
||||
#define STM32_SERIAL_USE_USART3 FALSE
|
||||
#define STM32_SERIAL_USE_UART4 FALSE
|
||||
#define STM32_SERIAL_USE_UART5 FALSE
|
||||
|
@ -258,7 +258,9 @@
|
|||
#define STM32_UART_USE_USART1 FALSE
|
||||
#endif
|
||||
|
||||
#ifndef STM32_UART_USE_USART2
|
||||
#define STM32_UART_USE_USART2 FALSE
|
||||
#endif
|
||||
|
||||
#ifndef STM32_UART_USE_USART3
|
||||
#define STM32_UART_USE_USART3 TRUE
|
||||
|
|
Loading…
Reference in New Issue