Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidy AP_Notify LED defines #27505

Merged
merged 6 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions libraries/AP_GPS/examples/GPS_AUTO_test/GPS_AUTO_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ const AP_HAL::HAL& hal = AP_HAL::get_HAL(); //Declare "hal"

static AP_BoardConfig board_config;

#if AP_NOTIFY_GPIO_LED_3_ENABLED
// create board led object
AP_BoardLED board_led;
#endif

// create fake gcs object
GCS_Dummy _gcs; //gcs stands for Ground Control Station
Expand All @@ -61,8 +63,10 @@ void setup()

board_config.init();

#if AP_NOTIFY_GPIO_LED_3_ENABLED
// Initialise the leds
board_led.init();
#endif

// Initialize the UART for GPS system
serial_manager.init();
Expand Down
11 changes: 11 additions & 0 deletions libraries/AP_HAL/board/linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#define HAL_BARO_PROBE_LIST PROBE_BARO_SPI(MS56XX, "ms5611")
#define HAL_MAG_PROBE_LIST PROBE_MAG_IMU(AK8963, mpu9250, 0, ROTATION_NONE)
#define HAL_PROBE_EXTERNAL_I2C_COMPASSES
#define AP_NOTIFY_GPIO_LED_3_ENABLED 1
#define HAL_GPIO_A_LED_PIN 61
#define HAL_GPIO_B_LED_PIN 48
#define HAL_GPIO_C_LED_PIN 117
Expand Down Expand Up @@ -122,6 +123,7 @@
#define HAL_BATT_MONITOR_DEFAULT AP_BattMonitor::Type::BEBOP
#define HAL_GPIO_SCRIPT "/data/ftp/internal_000/ardupilot/gpio.sh"
#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
#define HAL_GPIO_B_LED_PIN 1
#define HAL_GPIO_C_LED_PIN 2
Expand All @@ -143,6 +145,7 @@
#define HAL_BARO_PROBE_LIST PROBE_BARO_SPI(MS56XX, "ms5611")
#define HAL_MAG_PROBE_LIST PROBE_MAG_IMU(AK8963, mpu9250, 0, ROTATION_NONE)
#define HAL_PROBE_EXTERNAL_I2C_COMPASSES
#define AP_NOTIFY_GPIO_LED_3_ENABLED 1
#define HAL_GPIO_A_LED_PIN 24
#define HAL_GPIO_B_LED_PIN 25
#define HAL_GPIO_C_LED_PIN 16
Expand All @@ -158,6 +161,7 @@
#define HAL_MAG_PROBE_LIST PROBE_MAG_IMU(AK8963, mpu9250, 0, ROTATION_NONE)
#define HAL_PROBE_EXTERNAL_I2C_COMPASSES
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BBBMINI
#define AP_NOTIFY_GPIO_LED_3_ENABLED 1
#define HAL_GPIO_A_LED_PIN 69
#define HAL_GPIO_B_LED_PIN 68
#define HAL_GPIO_C_LED_PIN 45
Expand Down Expand Up @@ -186,6 +190,7 @@
// We don't want any probing on the internal buses
#define HAL_LINUX_I2C_INTERNAL_BUS_MASK 0
#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
#define HAL_GPIO_B_LED_PIN 67
#define HAL_GPIO_LED_ON 1
Expand All @@ -197,6 +202,7 @@
#define HAL_RANGEFINDER_LIGHTWARE_I2C_BUS 1
#define HAL_NUM_CAN_IFACES 1
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_POCKET
#define AP_NOTIFY_GPIO_LED_3_ENABLED 1
#define HAL_GPIO_A_LED_PIN 59
#define HAL_GPIO_B_LED_PIN 58
#define HAL_GPIO_C_LED_PIN 57
Expand All @@ -216,6 +222,7 @@
#define HAL_INS_PROBE_LIST HAL_INS_PROBE1; HAL_INS_PROBE2
#define HAL_MAG_PROBE_LIST PROBE_MAG_IMU(AK8963, mpu9250, 0, ROTATION_NONE)
#define HAL_PROBE_EXTERNAL_I2C_COMPASSES
#define AP_NOTIFY_GPIO_LED_3_ENABLED 1
#define HAL_GPIO_A_LED_PIN 17
#define HAL_GPIO_B_LED_PIN 18
#define HAL_GPIO_C_LED_PIN 22
Expand All @@ -227,6 +234,7 @@
#define HAL_BARO_PROBE_LIST PROBE_BARO_SPI(MS56XX, "ms5611")
#define HAL_MAG_PROBE_LIST PROBE_MAG_IMU(AK8963, mpu9250, 0, ROTATION_NONE)
#define HAL_PROBE_EXTERNAL_I2C_COMPASSES
#define AP_NOTIFY_GPIO_LED_3_ENABLED 1
#define HAL_GPIO_A_LED_PIN 24
#define HAL_GPIO_B_LED_PIN 25
#define HAL_GPIO_C_LED_PIN 16
Expand All @@ -243,6 +251,7 @@
#define HAL_INS_PROBE_LIST PROBE_IMU_SPI(Invensense, "mpu9250", ROTATION_NONE)
#define HAL_MAG_PROBE_LIST PROBE_MAG_IMU(AK8963, mpu9250, 0, ROTATION_NONE)
#define HAL_BARO_PROBE_LIST PROBE_BARO_I2C(MS56XX, 1, 0x77)
#define AP_NOTIFY_GPIO_LED_3_ENABLED 1
#define HAL_GPIO_A_LED_PIN 24
#define HAL_GPIO_B_LED_PIN 25
#define HAL_GPIO_C_LED_PIN 16
Expand Down Expand Up @@ -278,6 +287,7 @@
#define HAL_PROBE_EXTERNAL_I2C_COMPASSES
#define HAL_NUM_CAN_IFACES 1
#define HAL_CAN_DRIVER_DEFAULT 1
#define AP_NOTIFY_GPIO_LED_3_ENABLED 1
#define HAL_GPIO_A_LED_PIN 22
#define HAL_GPIO_B_LED_PIN 27
#define HAL_GPIO_C_LED_PIN 6
Expand Down Expand Up @@ -313,6 +323,7 @@


#ifdef OBAL_NOTIFY_LED
#define AP_NOTIFY_GPIO_LED_3_ENABLED 1
#define HAL_GPIO_A_LED_PIN 27 // You can choose between 27,22,4,12
#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
Expand Down
1 change: 1 addition & 0 deletions libraries/AP_HAL/board/sitl.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#define HAL_PARAM_DEFAULTS_PATH nullptr
#define HAL_INS_DEFAULT HAL_INS_NONE
#define HAL_BARO_DEFAULT HAL_BARO_NONE
#define AP_NOTIFY_GPIO_LED_3_ENABLED 1
#define HAL_GPIO_A_LED_PIN 61
#define HAL_GPIO_B_LED_PIN 48
#define HAL_GPIO_C_LED_PIN 117
Expand Down
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/2RAWH743/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ PA8 TIM1_CH1 TIM1 PWM(9) GPIO(58) # M9
PD10 VTX_PWR OUTPUT LOW GPIO(81)
define RELAY2_PIN_DEFAULT 81

define AP_NOTIFY_GPIO_LED_2_ENABLED 1
PE3 LED0 OUTPUT LOW GPIO(90)
define HAL_GPIO_A_LED_PIN 90

Expand Down
8 changes: 4 additions & 4 deletions libraries/AP_HAL_ChibiOS/hwdef/3DRControlZeroG/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -237,16 +237,16 @@ define HAL_WITH_RAMTRON 1
define HAL_OS_FATFS_IO 1

# Control Zero has a TriColor LED, Red, Green, Blue
define HAL_HAVE_PIXRACER_LED
define AP_NOTIFY_GPIO_LED_RGB_ENABLED 1

# LED setup for PixracerLED driver
PB11 LED_R OUTPUT HIGH GPIO(0)
PB1 LED_G OUTPUT HIGH GPIO(1)
PB3 LED_B OUTPUT HIGH GPIO(2)

define HAL_GPIO_A_LED_PIN 0
define HAL_GPIO_B_LED_PIN 1
define HAL_GPIO_C_LED_PIN 2
define AP_NOTIFY_GPIO_LED_RGB_RED_PIN 0
define AP_NOTIFY_GPIO_LED_RGB_GREEN_PIN 1
define AP_NOTIFY_GPIO_LED_RGB_BLUE_PIN 2

# DMA_PRIORITY SDMMC*
DMA_NOSHARE SPI1* SPI5*
Expand Down
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/ACNS-CM4Pilot/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ PC14 LED_BLUE OUTPUT LOW GPIO(0)
PA13 LED_GREEN OUTPUT LOW GPIO(1)
#PC15 LED_RED OUTPUT LOW GPIO(2)

define AP_NOTIFY_GPIO_LED_2_ENABLED 1
define HAL_GPIO_A_LED_PIN 0
define HAL_GPIO_B_LED_PIN 1
#define HAL_GPIO_C_LED_PIN 2
Expand Down
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/ACNS-F405AIO/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ PC14 LED_BLUE OUTPUT LOW GPIO(0)
PA13 LED_GREEN OUTPUT LOW GPIO(1)
PC15 LED_RED OUTPUT LOW GPIO(2)

define AP_NOTIFY_GPIO_LED_3_ENABLED 1
define HAL_GPIO_A_LED_PIN 0
define HAL_GPIO_B_LED_PIN 1
define HAL_GPIO_C_LED_PIN 2
Expand Down
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/AIRLink/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ PE4 LED_GREEN OUTPUT GPIO(91) LOW
PE3 LED_BLUE OUTPUT GPIO(92) HIGH

# setup for BoardLED2
define AP_NOTIFY_GPIO_LED_2_ENABLED 1
define HAL_GPIO_A_LED_PIN 90
define HAL_GPIO_B_LED_PIN 92
define HAL_GPIO_LED_ON 0
Expand Down
8 changes: 4 additions & 4 deletions libraries/AP_HAL_ChibiOS/hwdef/ARKV6X/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,12 @@ PE4 LED_GREEN OUTPUT OPENDRAIN GPIO(91) HIGH
PE5 LED_BLUE OUTPUT OPENDRAIN GPIO(92) HIGH

# setup for "pixracer" RGB LEDs
define HAL_GPIO_A_LED_PIN 90
define HAL_GPIO_B_LED_PIN 91
define HAL_GPIO_C_LED_PIN 92
define AP_NOTIFY_GPIO_LED_RGB_RED_PIN 90
define AP_NOTIFY_GPIO_LED_RGB_GREEN_PIN 91
define AP_NOTIFY_GPIO_LED_RGB_BLUE_PIN 92
define HAL_GPIO_LED_ON 0

define HAL_HAVE_PIXRACER_LED
define AP_NOTIFY_GPIO_LED_RGB_ENABLED 1

# ID pins
PG0 HW_VER_REV_DRIVE OUTPUT LOW
Expand Down
8 changes: 4 additions & 4 deletions libraries/AP_HAL_ChibiOS/hwdef/ARK_CANNODE/hwdef-bl.dat
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ PA8 LED_R1 OUTPUT OPENDRAIN HIGH GPIO(0)
PA9 LED_G1 OUTPUT OPENDRAIN LOW GPIO(1)
PA10 LED_B1 OUTPUT OPENDRAIN LOW GPIO(2)

define HAL_GPIO_A_LED_PIN 0
define HAL_GPIO_B_LED_PIN 1
define HAL_GPIO_C_LED_PIN 2
define AP_NOTIFY_GPIO_LED_RGB_RED_PIN 0
define AP_NOTIFY_GPIO_LED_RGB_GREEN_PIN 1
define AP_NOTIFY_GPIO_LED_RGB_BLUE_PIN 2

# use pixracer style 3-LED indicators
define HAL_HAVE_PIXRACER_LED
define AP_NOTIFY_GPIO_LED_RGB_ENABLED 1

# CAN bus
PA11 CAN1_RX CAN1
Expand Down
8 changes: 4 additions & 4 deletions libraries/AP_HAL_ChibiOS/hwdef/ARK_CANNODE/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ PA8 LED_R1 OUTPUT HIGH GPIO(0)
PA9 LED_G1 OUTPUT HIGH GPIO(1)
PA10 LED_B1 OUTPUT HIGH GPIO(2)

define HAL_GPIO_A_LED_PIN 0
define HAL_GPIO_B_LED_PIN 1
define HAL_GPIO_C_LED_PIN 2
define AP_NOTIFY_GPIO_LED_RGB_RED_PIN 0
define AP_NOTIFY_GPIO_LED_RGB_GREEN_PIN 1
define AP_NOTIFY_GPIO_LED_RGB_BLUE_PIN 2

# use pixracer style 3-LED indicators
define HAL_HAVE_PIXRACER_LED
define AP_NOTIFY_GPIO_LED_RGB_ENABLED 1

# CAN bus
PA11 CAN1_RX CAN1
Expand Down
8 changes: 4 additions & 4 deletions libraries/AP_HAL_ChibiOS/hwdef/ARK_GPS/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ PA8 LED_R1 OUTPUT OPENDRAIN HIGH GPIO(0)
PA9 LED_G1 OUTPUT OPENDRAIN LOW GPIO(1)
PA10 LED_B1 OUTPUT OPENDRAIN LOW GPIO(2)

define HAL_GPIO_A_LED_PIN 0
define HAL_GPIO_B_LED_PIN 1
define HAL_GPIO_C_LED_PIN 2
define AP_NOTIFY_GPIO_LED_RGB_RED_PIN 0
define AP_NOTIFY_GPIO_LED_RGB_GREEN_PIN 1
define AP_NOTIFY_GPIO_LED_RGB_BLUE_PIN 2

# use pixracer style 3-LED indicators
define HAL_HAVE_PIXRACER_LED
define AP_NOTIFY_GPIO_LED_RGB_ENABLED 1

# CAN bus
PA11 CAN1_RX CAN1
Expand Down
8 changes: 4 additions & 4 deletions libraries/AP_HAL_ChibiOS/hwdef/ARK_RTK_GPS/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ PA8 LED_R1 OUTPUT OPENDRAIN HIGH GPIO(0)
PA9 LED_G1 OUTPUT OPENDRAIN LOW GPIO(1)
PA10 LED_B1 OUTPUT OPENDRAIN LOW GPIO(2)

define HAL_GPIO_A_LED_PIN 0
define HAL_GPIO_B_LED_PIN 1
define HAL_GPIO_C_LED_PIN 2
define AP_NOTIFY_GPIO_LED_RGB_RED_PIN 0
define AP_NOTIFY_GPIO_LED_RGB_GREEN_PIN 1
define AP_NOTIFY_GPIO_LED_RGB_BLUE_PIN 2

# use pixracer style 3-LED indicators
define HAL_HAVE_PIXRACER_LED
define AP_NOTIFY_GPIO_LED_RGB_ENABLED 1

# CAN bus
PA11 CAN1_RX CAN1
Expand Down
8 changes: 4 additions & 4 deletions libraries/AP_HAL_ChibiOS/hwdef/AeroFox-GNSS_F9P/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ define HAL_PERIPH_ENABLE_RC_OUT
define HAL_PERIPH_ENABLE_NOTIFY

#GPIO LED
define HAL_HAVE_PIXRACER_LED
define AP_NOTIFY_GPIO_LED_RGB_ENABLED 1
PB2 LED_RED OUTPUT OPENDRAIN HIGH GPIO(0)
PB4 LED_GREEN OUTPUT OPENDRAIN LOW GPIO(1)
PB5 LED_BLUE OUTPUT OPENDRAIN LOW GPIO(2)
define HAL_GPIO_A_LED_PIN 0
define HAL_GPIO_B_LED_PIN 1
define HAL_GPIO_C_LED_PIN 2
define AP_NOTIFY_GPIO_LED_RGB_RED_PIN 0
define AP_NOTIFY_GPIO_LED_RGB_GREEN_PIN 1
define AP_NOTIFY_GPIO_LED_RGB_BLUE_PIN 2
8 changes: 4 additions & 4 deletions libraries/AP_HAL_ChibiOS/hwdef/AeroFox-PMU/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ define HAL_SUPPORT_RCOUT_SERIAL 1
define HAL_WITH_ESC_TELEM 1

#GPIO LED
define HAL_HAVE_PIXRACER_LED
define AP_NOTIFY_GPIO_LED_RGB_ENABLED 1
PB2 LED_RED OUTPUT OPENDRAIN HIGH GPIO(0)
PB4 LED_GREEN OUTPUT OPENDRAIN LOW GPIO(1)
PB5 LED_BLUE OUTPUT OPENDRAIN LOW GPIO(2)
define HAL_GPIO_A_LED_PIN 0
define HAL_GPIO_B_LED_PIN 1
define HAL_GPIO_C_LED_PIN 2
define AP_NOTIFY_GPIO_LED_RGB_RED_PIN 0
define AP_NOTIFY_GPIO_LED_RGB_GREEN_PIN 1
define AP_NOTIFY_GPIO_LED_RGB_BLUE_PIN 2

define HAL_SERIAL_ESC_COMM_ENABLED 1
define HAL_RCIN_THREAD_ENABLED 1
3 changes: 2 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/AnyleafH7/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ define HAL_BATT_CURR_SCALE 40.0 # This depends on the ESC's V/mA output ratio.
# LED
PC13 LED0 OUTPUT LOW GPIO(90) # Amber; System status.
PC0 LED1 OUTPUT LOW GPIO(91) # Not connected; GPS Status. (Required, or the system status LED won't work.)
define AP_NOTIFY_GPIO_LED_2_ENABLED 1
define HAL_GPIO_A_LED_PIN 90
define HAL_GPIO_B_LED_PIN 91

Expand Down Expand Up @@ -121,4 +122,4 @@ define HAL_COMPASS_AUTO_ROT_DEFAULT 2
# setup for OSD
define OSD_ENABLED 1
define HAL_OSD_TYPE_DEFAULT 5 # MSP Displayport
define HAL_LOGGING_DATAFLASH_ENABLED 1
define HAL_LOGGING_DATAFLASH_ENABLED 1
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ define BOARD_RSSI_ANA_PIN 8
# green LED1 marked as B/E
PE3 LED0 OUTPUT LOW GPIO(90) # blue
PE4 LED1 OUTPUT LOW GPIO(91) # orange
define AP_NOTIFY_GPIO_LED_2_ENABLED 1
define HAL_GPIO_A_LED_PIN 91
define HAL_GPIO_B_LED_PIN 90

Expand Down
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/AtomRCF405NAVI/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ SERIAL_ORDER OTG1 USART1 USART2 USART3 UART4 UART5 USART6
PA14 LED_BLUE OUTPUT LOW GPIO(0)
PA13 LED_GREEN OUTPUT LOW GPIO(1)

define AP_NOTIFY_GPIO_LED_2_ENABLED 1
define HAL_GPIO_A_LED_PIN 0
define HAL_GPIO_B_LED_PIN 1

Expand Down
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/BETAFPV-F405/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ PA3 TIM2_CH4 TIM2 PWM(3) GPIO(52) BIDIR # M3
PA2 TIM2_CH3 TIM2 PWM(4) GPIO(53) # M4

# LEDs
define AP_NOTIFY_GPIO_LED_1_ENABLED 1
PB5 LED0 OUTPUT LOW GPIO(90)
define HAL_GPIO_A_LED_PIN 90
# LED strip
Expand Down
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/BlitzF745/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ PE14 TIM1_CH4 TIM1 PWM(8) GPIO(57) # M8
# LEDs
PC9 TIM8_CH4 TIM8 PWM(9) GPIO(58) # M9

define AP_NOTIFY_GPIO_LED_1_ENABLED 1
PD15 LED0 OUTPUT LOW GPIO(90)
define HAL_GPIO_A_LED_PIN 90

Expand Down
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/BlitzH743Pro/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ PE6 TIM15_CH2 TIM15 PWM(12) GPIO(61) NODMA # M12
# LEDs
PA8 TIM1_CH1 TIM1 PWM(13) GPIO(62) # M9

define AP_NOTIFY_GPIO_LED_2_ENABLED 1

PE3 LED0 OUTPUT LOW GPIO(90)
define HAL_GPIO_A_LED_PIN 90

Expand Down
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/CBU-H7-Stamp/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ PF5 SAFETY_IN INPUT PULLDOWN
# LED
PE3 LED_RED OUTPUT HIGH GPIO(90)

define AP_NOTIFY_GPIO_LED_1_ENABLED 1
define HAL_GPIO_A_LED_PIN 90
define HAL_GPIO_LED_ON 1

Expand Down
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/CSKY405/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ OSCILLATOR_HZ 8000000
# --------------------- LED -----------------------
PA14 LED0 OUTPUT LOW GPIO(90) # blue marked as ACT
PA13 LED1 OUTPUT LOW GPIO(91) # green marked as B/E
define AP_NOTIFY_GPIO_LED_2_ENABLED 1
define HAL_GPIO_A_LED_PIN 91
define HAL_GPIO_B_LED_PIN 90

Expand Down
8 changes: 4 additions & 4 deletions libraries/AP_HAL_ChibiOS/hwdef/CUAV-Nora/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,12 @@ PI5 LED_R1 OUTPUT OPENDRAIN HIGH GPIO(0)
PI6 LED_G1 OUTPUT OPENDRAIN LOW GPIO(1)
PI7 LED_B1 OUTPUT OPENDRAIN HIGH GPIO(2)

define HAL_GPIO_A_LED_PIN 0
define HAL_GPIO_B_LED_PIN 1
define HAL_GPIO_C_LED_PIN 2
define AP_NOTIFY_GPIO_LED_RGB_RED_PIN 0
define AP_NOTIFY_GPIO_LED_RGB_GREEN_PIN 1
define AP_NOTIFY_GPIO_LED_RGB_BLUE_PIN 2

# use pixracer style 3-LED indicators
define HAL_HAVE_PIXRACER_LED
define AP_NOTIFY_GPIO_LED_RGB_ENABLED 1

# enable RAMTROM parameter storage
define HAL_STORAGE_SIZE 32768
Expand Down
8 changes: 4 additions & 4 deletions libraries/AP_HAL_ChibiOS/hwdef/CUAV-X7/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,12 @@ PI5 LED_R1 OUTPUT OPENDRAIN HIGH GPIO(0)
PI6 LED_G1 OUTPUT OPENDRAIN LOW GPIO(1)
PI7 LED_B1 OUTPUT OPENDRAIN HIGH GPIO(2)

define HAL_GPIO_A_LED_PIN 0
define HAL_GPIO_B_LED_PIN 1
define HAL_GPIO_C_LED_PIN 2
define AP_NOTIFY_GPIO_LED_RGB_RED_PIN 0
define AP_NOTIFY_GPIO_LED_RGB_GREEN_PIN 1
define AP_NOTIFY_GPIO_LED_RGB_BLUE_PIN 2

# use pixracer style 3-LED indicators
define HAL_HAVE_PIXRACER_LED
define AP_NOTIFY_GPIO_LED_RGB_ENABLED 1

# enable RAMTROM parameter storage
define HAL_STORAGE_SIZE 32768
Expand Down
Loading
Loading