From 280d7c6d15f9df4179de73ac2d01201e072443b4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 12 Jan 2024 14:23:25 +1100 Subject: [PATCH] hwdef: added CubePilot-PPPGW --- .../hwdef/CubePilot-PPPGW/defaults.parm | 5 +++++ .../hwdef/CubePilot-PPPGW/hwdef-bl.dat | 1 + .../hwdef/CubePilot-PPPGW/hwdef.dat | 21 +++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/CubePilot-PPPGW/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/CubePilot-PPPGW/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/CubePilot-PPPGW/hwdef.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-PPPGW/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-PPPGW/defaults.parm new file mode 100644 index 0000000000..a10bbb4937 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-PPPGW/defaults.parm @@ -0,0 +1,5 @@ +NET_ENABLED 1 + +# enable hw flow control +UART1_RTSCTS 1 + diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-PPPGW/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-PPPGW/hwdef-bl.dat new file mode 100644 index 0000000000..dbde2799b7 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-PPPGW/hwdef-bl.dat @@ -0,0 +1 @@ +include ../CubePilot-CANMod/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-PPPGW/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-PPPGW/hwdef.dat new file mode 100644 index 0000000000..dfaed04510 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-PPPGW/hwdef.dat @@ -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