AP_HAL_ChibiOS: move all defaults to end of hwdef.h

this allows the defaults to be based on other things set in the hwdef - for example, NUM_SERVO_CHANNELS to be dependent on HAL_PWM_COUNT
This commit is contained in:
Peter Barker 2023-01-25 10:11:57 +11:00 committed by Peter Barker
parent bd91294337
commit 3e0ca818a3
1 changed files with 5 additions and 4 deletions

View File

@ -2366,10 +2366,6 @@ def write_hwdef_header(outfilename):
write_BARO_config(f)
write_AIRSPEED_config(f)
write_board_validate_macro(f)
add_apperiph_defaults(f)
add_bootloader_defaults(f)
add_iomcu_firmware_defaults(f)
add_normal_firmware_defaults(f)
write_check_firmware(f)
write_peripheral_enable(f)
@ -2491,6 +2487,11 @@ def write_hwdef_header(outfilename):
if fnmatch.fnmatch(d, r):
error("Missing required DMA for %s" % d)
add_apperiph_defaults(f)
add_bootloader_defaults(f)
add_iomcu_firmware_defaults(f)
add_normal_firmware_defaults(f)
f.close()
# see if we ended up with the same file, on an unnecessary reconfigure
try: