From 23c0f257b60726ae1612acfe71463f47ec130e2f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 30 May 2021 19:00:31 +1000 Subject: [PATCH] HAL_ChibiOS: default off serial protocols in AP_Periph this allows for a GPS on high numbered ports --- libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py index 274ad4b09b..88602c0d10 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py @@ -2161,6 +2161,11 @@ def add_apperiph_defaults(f): #ifndef HAL_LOGGING_ENABLED #define HAL_LOGGING_ENABLED 0 #endif +// default to no protocols, AP_Periph enables with params +#define HAL_SERIAL1_PROTOCOL -1 +#define HAL_SERIAL2_PROTOCOL -1 +#define HAL_SERIAL3_PROTOCOL -1 +#define HAL_SERIAL4_PROTOCOL -1 ''')