mirror of https://github.com/ArduPilot/ardupilot
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:
parent
bd91294337
commit
3e0ca818a3
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue