AP_HAL: stop using linux board subtype in Notify LED setup
... instead have the board definitions define things like we do for ChibiOS
This commit is contained in:
parent
4938a6bb42
commit
55308e6d79
@ -122,6 +122,7 @@
|
||||
#define AP_COMPASS_OFFSETS_MAX_DEFAULT 2200
|
||||
#define HAL_BATT_MONITOR_DEFAULT AP_BattMonitor::Type::BEBOP
|
||||
#define HAL_GPIO_SCRIPT "/data/ftp/internal_000/ardupilot/gpio.sh"
|
||||
#define AP_NOTIFY_DISCO_LED_ENABLED 1
|
||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIO
|
||||
#define AP_NOTIFY_GPIO_LED_3_ENABLED 1
|
||||
#define HAL_GPIO_A_LED_PIN 0
|
||||
@ -140,6 +141,7 @@
|
||||
#define HAL_MAG_PROBE2 PROBE_MAG_IMU(AK8963, mpu9250, 0, ROTATION_NONE)
|
||||
#define HAL_MAG_PROBE_LIST HAL_MAG_PROBE1; HAL_MAG_PROBE2
|
||||
#define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
||||
#define AP_NOTIFY_SYSFS_LED_ENABLED 1
|
||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_ERLEBRAIN2
|
||||
#define HAL_INS_PROBE_LIST PROBE_IMU_SPI(Invensense, "mpu9250", ROTATION_YAW_270)
|
||||
#define HAL_BARO_PROBE_LIST PROBE_BARO_SPI(MS56XX, "ms5611")
|
||||
@ -189,6 +191,7 @@
|
||||
#define HAL_LINUX_I2C_EXTERNAL_BUS_MASK 1 << 6
|
||||
// We don't want any probing on the internal buses
|
||||
#define HAL_LINUX_I2C_INTERNAL_BUS_MASK 0
|
||||
#define AP_NOTIFY_NAVIGATOR_LED_ENABLED 1
|
||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BLUE
|
||||
#define AP_NOTIFY_GPIO_LED_2_ENABLED 1
|
||||
#define HAL_GPIO_A_LED_PIN 66
|
||||
@ -226,6 +229,7 @@
|
||||
#define HAL_GPIO_A_LED_PIN 17
|
||||
#define HAL_GPIO_B_LED_PIN 18
|
||||
#define HAL_GPIO_C_LED_PIN 22
|
||||
#define AP_NOTIFY_RCOUTPUTRGBLED_LED_ENABLED 1
|
||||
#define HAL_RCOUT_RGBLED_RED 13
|
||||
#define HAL_RCOUT_RGBLED_GREEN 14
|
||||
#define HAL_RCOUT_RGBLED_BLUE 15
|
||||
@ -275,6 +279,7 @@
|
||||
#define HAL_LINUX_HEAT_PERIOD_NS 2040816
|
||||
#define HAL_GPS1_TYPE_DEFAULT 9
|
||||
#define HAL_CAN_DRIVER_DEFAULT 1
|
||||
#define AP_NOTIFY_RCOUTPUTRGBLEDINVERTED_LED_ENABLED 1
|
||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_RST_ZYNQ
|
||||
#define HAL_INS_PROBE_LIST PROBE_IMU_SPI2(Invensense, "rst_g", "rst_a", ROTATION_ROLL_180_YAW_90, ROTATION_ROLL_180_YAW_90)
|
||||
#define HAL_BARO_PROBE_LIST PROBE_BARO_SPI(MS56XX, "ms5611")
|
||||
|
Loading…
Reference in New Issue
Block a user