AP_HAL_ChibiOS: add and use AP_BATTMON_SMBUS_SOLO_ENABLED

This commit is contained in:
Peter Barker 2023-01-25 15:42:24 +11:00 committed by Peter Barker
parent eab6ef72e1
commit af3edf0089
4 changed files with 12 additions and 0 deletions

View File

@ -16,4 +16,7 @@ define AP_NOTIFY_OREOLED_ENABLED 1
undef HAL_SOLO_GIMBAL_ENABLED undef HAL_SOLO_GIMBAL_ENABLED
define HAL_SOLO_GIMBAL_ENABLED HAL_MOUNT_ENABLED define HAL_SOLO_GIMBAL_ENABLED HAL_MOUNT_ENABLED
undef AP_BATTMON_SMBUS_SOLO_ENABLED
define AP_BATTMON_SMBUS_SOLO_ENABLED AP_BATTMON_SMBUS_ENABLE
AUTOBUILD_TARGETS Copter AUTOBUILD_TARGETS Copter

View File

@ -333,6 +333,9 @@ DMA_NOSHARE SPI1* SPI4* USART6*
define AP_NOTIFY_OREOLED_ENABLED 1 define AP_NOTIFY_OREOLED_ENABLED 1
define HAL_SOLO_GIMBAL_ENABLED HAL_MOUNT_ENABLED define HAL_SOLO_GIMBAL_ENABLED HAL_MOUNT_ENABLED
undef AP_BATTMON_SMBUS_SOLO_ENABLED
define AP_BATTMON_SMBUS_SOLO_ENABLED AP_BATTMON_SMBUS_ENABLE
# Enable Sagetech MXS ADSB transponder # Enable Sagetech MXS ADSB transponder
define HAL_ADSB_SAGETECH_MXS_ENABLED HAL_ADSB_ENABLED define HAL_ADSB_SAGETECH_MXS_ENABLED HAL_ADSB_ENABLED

View File

@ -57,4 +57,7 @@ define HAL_IMU_TEMP_MARGIN_LOW_DEFAULT 5
undef HAL_SOLO_GIMBAL_ENABLED undef HAL_SOLO_GIMBAL_ENABLED
define HAL_SOLO_GIMBAL_ENABLED HAL_MOUNT_ENABLED define HAL_SOLO_GIMBAL_ENABLED HAL_MOUNT_ENABLED
undef AP_BATTMON_SMBUS_SOLO_ENABLED
define AP_BATTMON_SMBUS_SOLO_ENABLED AP_BATTMON_SMBUS_ENABLE
AUTOBUILD_TARGETS Copter AUTOBUILD_TARGETS Copter

View File

@ -473,5 +473,8 @@ ROMFS io_firmware.bin Tools/IO_Firmware/iofirmware_lowpolh.bin
define AP_NOTIFY_OREOLED_ENABLED (BOARD_FLASH_SIZE > 1024) define AP_NOTIFY_OREOLED_ENABLED (BOARD_FLASH_SIZE > 1024)
define HAL_SOLO_GIMBAL_ENABLED (HAL_MOUNT_ENABLED && BOARD_FLASH_SIZE > 1024) define HAL_SOLO_GIMBAL_ENABLED (HAL_MOUNT_ENABLED && BOARD_FLASH_SIZE > 1024)
undef AP_BATTMON_SMBUS_SOLO_ENABLED
define AP_BATTMON_SMBUS_SOLO_ENABLED (AP_BATTMON_SMBUS_ENABLE && BOARD_FLASH_SIZE > 1024)
# produce this error if we are on a 1M board # produce this error if we are on a 1M board
define BOARD_CHECK_F427_USE_1M "ERROR: 1M flash use fmuv2" define BOARD_CHECK_F427_USE_1M "ERROR: 1M flash use fmuv2"