Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP_HAL_ChibiOS: remove iomcu dshot from Pixhawk1-1M #26326

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Pixhawk1-1M/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ undef STORAGE_FLASH_PAGE

# produce this error if we are on a 2M board and using 1M firmware
define BOARD_CHECK_F427_USE_2M "2M flash - use Pixhawk1 firmware"

# enable support for dshot on iomcu
undef ROMFS
ROMFS io_firmware.bin Tools/IO_Firmware/iofirmware_lowpolh.bin
undef HAL_WITH_IO_MCU_DSHOT
4 changes: 4 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Pixhawk1-bdshot/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py
Original file line number Diff line number Diff line change
Expand Up @@ -3049,6 +3049,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:
Expand Down
Loading