AP_HAL: chibios.h: remove defaulting of HAL_GPIO_LED_ON and _OFF
this same defaulting is being done in AP_HAL_ChibiOS/GPIO.h
This commit is contained in:
parent
b904ab27f8
commit
f70a1927f5
@ -18,13 +18,6 @@
|
||||
#define HAL_MEM_CLASS HAL_MEM_CLASS_20
|
||||
#endif
|
||||
|
||||
#ifndef HAL_GPIO_LED_ON
|
||||
#define HAL_GPIO_LED_ON 0
|
||||
#endif
|
||||
#ifndef HAL_GPIO_LED_OFF
|
||||
#define HAL_GPIO_LED_OFF 1
|
||||
#endif
|
||||
|
||||
#ifndef HAL_NUM_CAN_IFACES
|
||||
#define HAL_NUM_CAN_IFACES 0
|
||||
#endif
|
||||
|
@ -39,8 +39,6 @@
|
||||
#define HAL_GPIO_A_LED_PIN 61
|
||||
#define HAL_GPIO_B_LED_PIN 48
|
||||
#define HAL_GPIO_C_LED_PIN 117
|
||||
#define HAL_GPIO_LED_ON 0
|
||||
#define HAL_GPIO_LED_OFF 1
|
||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BEBOP
|
||||
#define HAL_BOARD_LOG_DIRECTORY "/data/ftp/internal_000/ardupilot/logs"
|
||||
#define HAL_BOARD_TERRAIN_DIRECTORY "/data/ftp/internal_000/ardupilot/terrain"
|
||||
@ -128,7 +126,6 @@
|
||||
#define HAL_GPIO_B_LED_PIN 1
|
||||
#define HAL_GPIO_C_LED_PIN 2
|
||||
#define HAL_GPIO_LED_ON 1
|
||||
#define HAL_GPIO_LED_OFF 0
|
||||
#define HAL_INS_PROBE_LIST PROBE_IMU_SPI(Invensense, "mpu9250", ROTATION_NONE)
|
||||
#define HAL_BARO_PROBE_LIST PROBE_BARO_I2C(MS56XX, 1, 0x77)
|
||||
#define HAL_MAG_PROBE_LIST PROBE_MAG_IMU(AK8963, mpu9250, 0, ROTATION_NONE)
|
||||
@ -149,8 +146,6 @@
|
||||
#define HAL_GPIO_A_LED_PIN 24
|
||||
#define HAL_GPIO_B_LED_PIN 25
|
||||
#define HAL_GPIO_C_LED_PIN 16
|
||||
#define HAL_GPIO_LED_ON 0
|
||||
#define HAL_GPIO_LED_OFF 1
|
||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_ZYNQ
|
||||
// Stub the sensors out for now, at least we can build and run
|
||||
#define HAL_INS_DEFAULT HAL_INS_NONE
|
||||
@ -166,8 +161,6 @@
|
||||
#define HAL_GPIO_A_LED_PIN 69
|
||||
#define HAL_GPIO_B_LED_PIN 68
|
||||
#define HAL_GPIO_C_LED_PIN 45
|
||||
#define HAL_GPIO_LED_ON 0
|
||||
#define HAL_GPIO_LED_OFF 1
|
||||
#define HAL_BUZZER_PIN 11
|
||||
#define HAL_INS_PROBE1 PROBE_IMU_SPI(Invensense, "mpu9250", ROTATION_NONE)
|
||||
#define HAL_INS_PROBE2 PROBE_IMU_SPI(Invensense, "mpu9250ext", ROTATION_NONE)
|
||||
@ -196,7 +189,6 @@
|
||||
#define HAL_GPIO_A_LED_PIN 66
|
||||
#define HAL_GPIO_B_LED_PIN 67
|
||||
#define HAL_GPIO_LED_ON 1
|
||||
#define HAL_GPIO_LED_OFF 0
|
||||
#define HAL_INS_PROBE_LIST PROBE_IMU_I2C(Invensense, 2, 0x68, ROTATION_NONE)
|
||||
#define HAL_BARO_PROBE_LIST PROBE_BARO_I2C(BMP280, 2, 0x76)
|
||||
#define HAL_MAG_PROBE_LIST PROBE_MAG_IMU_I2C(AK8963, mpu9250, 2, 0x0c, ROTATION_NONE)
|
||||
@ -209,7 +201,6 @@
|
||||
#define HAL_GPIO_B_LED_PIN 58
|
||||
#define HAL_GPIO_C_LED_PIN 57
|
||||
#define HAL_GPIO_LED_ON 1
|
||||
#define HAL_GPIO_LED_OFF 0
|
||||
#define HAL_BUZZER_PIN 28
|
||||
#define HAL_INS_PROBE_LIST PROBE_IMU_SPI(Invensense, "mpu9250", ROTATION_NONE)
|
||||
#define HAL_BARO_PROBE_LIST PROBE_BARO_SPI(BMP280, "bmp280")
|
||||
@ -228,8 +219,6 @@
|
||||
#define HAL_GPIO_A_LED_PIN 17
|
||||
#define HAL_GPIO_B_LED_PIN 18
|
||||
#define HAL_GPIO_C_LED_PIN 22
|
||||
#define HAL_GPIO_LED_ON 0
|
||||
#define HAL_GPIO_LED_OFF 1
|
||||
#define HAL_RCOUT_RGBLED_RED 13
|
||||
#define HAL_RCOUT_RGBLED_GREEN 14
|
||||
#define HAL_RCOUT_RGBLED_BLUE 15
|
||||
@ -241,8 +230,6 @@
|
||||
#define HAL_GPIO_A_LED_PIN 24
|
||||
#define HAL_GPIO_B_LED_PIN 25
|
||||
#define HAL_GPIO_C_LED_PIN 16
|
||||
#define HAL_GPIO_LED_ON 0
|
||||
#define HAL_GPIO_LED_OFF 1
|
||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_AERO
|
||||
#define HAL_INS_PROBE_LIST PROBE_IMU_SPI(BMI160, "bmi160")
|
||||
#define HAL_BARO_PROBE_LIST PROBE_BARO_I2C(MS56XX, 2, 0x76)
|
||||
@ -259,8 +246,6 @@
|
||||
#define HAL_GPIO_A_LED_PIN 24
|
||||
#define HAL_GPIO_B_LED_PIN 25
|
||||
#define HAL_GPIO_C_LED_PIN 16
|
||||
#define HAL_GPIO_LED_ON 0
|
||||
#define HAL_GPIO_LED_OFF 1
|
||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_EDGE
|
||||
#define HAL_BOARD_LOG_DIRECTORY "/edge/ardupilot/logs"
|
||||
#define HAL_BOARD_TERRAIN_DIRECTORY "/edge/ardupilot/terrain"
|
||||
@ -296,8 +281,6 @@
|
||||
#define HAL_GPIO_A_LED_PIN 22
|
||||
#define HAL_GPIO_B_LED_PIN 27
|
||||
#define HAL_GPIO_C_LED_PIN 6
|
||||
#define HAL_GPIO_LED_ON 0
|
||||
#define HAL_GPIO_LED_OFF 1
|
||||
#define HAL_BOARD_LOG_DIRECTORY "/home/pi/ardupilot/logs"
|
||||
#define HAL_BOARD_TERRAIN_DIRECTORY "/home/pi/ardupilot/terrain"
|
||||
#define HAL_BOARD_STORAGE_DIRECTORY "/home/pi/ardupilot"
|
||||
@ -334,7 +317,6 @@
|
||||
#define HAL_GPIO_C_LED_PIN 22 // You can choose between 27,22,4,12
|
||||
#define HAL_GPIO_B_LED_PIN 4 // You can choose between 27,22,4,12
|
||||
#define HAL_GPIO_LED_ON 1
|
||||
#define HAL_GPIO_LED_OFF 0
|
||||
#endif
|
||||
#define HAL_BUZZER_PIN 12 // You can choose between 27,22,4,12
|
||||
#define OBAL_ALLOW_ADC 1
|
||||
|
@ -42,8 +42,6 @@
|
||||
#define HAL_GPIO_A_LED_PIN 61
|
||||
#define HAL_GPIO_B_LED_PIN 48
|
||||
#define HAL_GPIO_C_LED_PIN 117
|
||||
#define HAL_GPIO_LED_ON 0
|
||||
#define HAL_GPIO_LED_OFF 1
|
||||
|
||||
#define HAL_HAVE_BOARD_VOLTAGE 1
|
||||
#define HAL_HAVE_SERVO_VOLTAGE 1
|
||||
|
Loading…
Reference in New Issue
Block a user