hwdef: added CubePilot-PPPGW

This commit is contained in:
Andrew Tridgell 2024-01-12 14:23:25 +11:00 committed by Tom Pittenger
parent 44bc523db8
commit 280d7c6d15
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,5 @@
NET_ENABLED 1
# enable hw flow control
UART1_RTSCTS 1

View File

@ -0,0 +1 @@
include ../CubePilot-CANMod/hwdef-bl.dat

View File

@ -0,0 +1,21 @@
include ../CubePilot-CANMod/hwdef.dat
# we need RTS/CTS for the PPP link
undef PD14
undef PD13
undef PE0
undef PE1
# need to use UART8 to get RTS/CTS
PE1 UART8_TX UART8
PE0 UART8_RX UART8
PD13 UART8_RTS UART8
PD14 UART8_CTS UART8
SERIAL_ORDER OTG1 UART8
define HAL_PERIPH_ENABLE_SERIAL_OPTIONS
define AP_NETWORKING_BACKEND_PPP 1
define AP_PERIPH_NET_PPP_PORT_DEFAULT 1
define AP_PERIPH_NET_PPP_BAUD_DEFAULT 12500000