AP_HAL_ChibiOS: add more comments to generated hwdef.h

End-delimiters for e.g. AP_Periph defaults etc
This commit is contained in:
Peter Barker 2022-08-24 17:05:23 +10:00 committed by Peter Barker
parent e2e239dd08
commit 8d29116982

View File

@ -3000,6 +3000,8 @@ def add_apperiph_defaults(f):
#ifndef HAL_ENABLE_SAVE_PERSISTENT_PARAMS
#define HAL_ENABLE_SAVE_PERSISTENT_PARAMS 0
#endif
// end AP_Periph defaults
''')
def add_bootloader_defaults(f):
@ -3043,6 +3045,8 @@ def add_bootloader_defaults(f):
#ifndef AP_FAULTHANDLER_DEBUG_VARIABLES_ENABLED
#define AP_FAULTHANDLER_DEBUG_VARIABLES_ENABLED 0
#endif
// end AP_Bootloader defaults
''')
def add_iomcu_firmware_defaults(f):
@ -3075,6 +3079,8 @@ def add_iomcu_firmware_defaults(f):
#ifndef AP_FAULTHANDLER_DEBUG_VARIABLES_ENABLED
#define AP_FAULTHANDLER_DEBUG_VARIABLES_ENABLED 0
#endif
// end IOMCU Firmware defaults
''')
def add_normal_firmware_defaults(f):
@ -3097,6 +3103,7 @@ def add_normal_firmware_defaults(f):
#define HAL_DSHOT_ALARM_ENABLED (HAL_PWM_COUNT>0)
#endif
// end firmware defaults
''')
# process input file