mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_ChibiOS: add and use AP_BATTMON_SMBUS_SOLO_ENABLED
This commit is contained in:
parent
eab6ef72e1
commit
af3edf0089
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue