From 46ebf9875a966eb491d20feea9987bcbe89fba46 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 13 Mar 2024 15:47:55 +1100 Subject: [PATCH] AP_HAL_ChibiOS: remove iomcu dshot from Pixhawk1-1M and add to Pixhawk1-bdshot add support for removing ROMFS from hwdef --- libraries/AP_HAL_ChibiOS/hwdef/Pixhawk1-bdshot/hwdef.dat | 4 ++++ libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk1-bdshot/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk1-bdshot/hwdef.dat index 67ea0aae84d5d3..3aca8a528df99c 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk1-bdshot/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk1-bdshot/hwdef.dat @@ -36,3 +36,7 @@ define HAL_PROBE_EXTERNAL_I2C_COMPASSES # produce this error if we are on a 1M board undef BOARD_CHECK_F427_USE_1M define BOARD_CHECK_F427_USE_1M "ERROR: 1M flash use Pixhawk1-1M" + +# enable support for dshot on iomcu +ROMFS io_firmware_dshot.bin Tools/IO_Firmware/iofirmware_dshot_lowpolh.bin +define HAL_WITH_IO_MCU_DSHOT 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py index 26d14b190536f0..05ef5923804757 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py @@ -3040,6 +3040,8 @@ def process_line(self, line): self.baro_list = [] if u == 'AIRSPEED': self.airspeed_list = [] + if u == 'ROMFS': + self.romfs = {} elif a[0] == 'env': self.progress("Adding environment %s" % ' '.join(a[1:])) if len(a[1:]) < 2: