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_BARO_config(f)
|
||||||
write_AIRSPEED_config(f)
|
write_AIRSPEED_config(f)
|
||||||
write_board_validate_macro(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_check_firmware(f)
|
||||||
|
|
||||||
write_peripheral_enable(f)
|
write_peripheral_enable(f)
|
||||||
@ -2491,6 +2487,11 @@ def write_hwdef_header(outfilename):
|
|||||||
if fnmatch.fnmatch(d, r):
|
if fnmatch.fnmatch(d, r):
|
||||||
error("Missing required DMA for %s" % d)
|
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()
|
f.close()
|
||||||
# see if we ended up with the same file, on an unnecessary reconfigure
|
# see if we ended up with the same file, on an unnecessary reconfigure
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user