diff --git a/libraries/AP_HAL_ChibiOS/hwdef/ARK_CANNODE/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/ARK_CANNODE/hwdef-bl.dat index e46f2696da..82e803a3c7 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/ARK_CANNODE/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/ARK_CANNODE/hwdef-bl.dat @@ -43,9 +43,6 @@ define HAL_GPIO_A_LED_PIN 0 define HAL_GPIO_B_LED_PIN 1 define HAL_GPIO_C_LED_PIN 2 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # use pixracer style 3-LED indicators define HAL_HAVE_PIXRACER_LED diff --git a/libraries/AP_HAL_ChibiOS/hwdef/ARK_CANNODE/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/ARK_CANNODE/hwdef.dat index 78356b688d..94e7bad5b1 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/ARK_CANNODE/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/ARK_CANNODE/hwdef.dat @@ -69,9 +69,6 @@ define HAL_GPIO_A_LED_PIN 0 define HAL_GPIO_B_LED_PIN 1 define HAL_GPIO_C_LED_PIN 2 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # use pixracer style 3-LED indicators define HAL_HAVE_PIXRACER_LED diff --git a/libraries/AP_HAL_ChibiOS/hwdef/ARK_GPS/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/ARK_GPS/hwdef.dat index 6e70c7233b..64d29ddb8c 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/ARK_GPS/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/ARK_GPS/hwdef.dat @@ -62,9 +62,6 @@ define HAL_GPIO_A_LED_PIN 0 define HAL_GPIO_B_LED_PIN 1 define HAL_GPIO_C_LED_PIN 2 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # use pixracer style 3-LED indicators define HAL_HAVE_PIXRACER_LED diff --git a/libraries/AP_HAL_ChibiOS/hwdef/ARK_RTK_GPS/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/ARK_RTK_GPS/hwdef.dat index 7b04ae91f2..5a1c407f26 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/ARK_RTK_GPS/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/ARK_RTK_GPS/hwdef.dat @@ -66,9 +66,6 @@ define HAL_GPIO_A_LED_PIN 0 define HAL_GPIO_B_LED_PIN 1 define HAL_GPIO_C_LED_PIN 2 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # use pixracer style 3-LED indicators define HAL_HAVE_PIXRACER_LED diff --git a/libraries/AP_HAL_ChibiOS/hwdef/AeroFox-GNSS_F9P/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/AeroFox-GNSS_F9P/hwdef.dat index 5136c711c5..88ca8a1552 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/AeroFox-GNSS_F9P/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/AeroFox-GNSS_F9P/hwdef.dat @@ -109,6 +109,3 @@ 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 HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - diff --git a/libraries/AP_HAL_ChibiOS/hwdef/AeroFox-PMU/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/AeroFox-PMU/hwdef.dat index d2d9b2d643..41820f8b76 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/AeroFox-PMU/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/AeroFox-PMU/hwdef.dat @@ -56,7 +56,5 @@ 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 HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 define HAL_SERIAL_ESC_COMM_ENABLED 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/AnyleafH7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/AnyleafH7/hwdef.dat index 91281228a2..ae5f1d6129 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/AnyleafH7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/AnyleafH7/hwdef.dat @@ -52,8 +52,6 @@ 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 HAL_GPIO_A_LED_PIN 90 define HAL_GPIO_B_LED_PIN 91 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 # order of UARTs (and USB) OTG2 may be required for SLCAN. SERIAL_ORDER OTG1 USART1 USART2 USART3 UART4 UART7 UART8 #OTG2 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Aocoda-RC-H743Dual/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Aocoda-RC-H743Dual/hwdef.dat index 302ae534d0..6a1236d5b1 100755 --- a/libraries/AP_HAL_ChibiOS/hwdef/Aocoda-RC-H743Dual/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Aocoda-RC-H743Dual/hwdef.dat @@ -102,7 +102,6 @@ PE3 LED0 OUTPUT LOW GPIO(90) # blue PE4 LED1 OUTPUT LOW GPIO(91) # orange define HAL_GPIO_A_LED_PIN 91 define HAL_GPIO_B_LED_PIN 90 -define HAL_GPIO_LED_OFF 1 # The normal usage of this ordering is: # 1) SERIAL0: console (primary mavlink, usually USB) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/BETAFPV-F405/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/BETAFPV-F405/hwdef.dat index a8818145ff..a5c9a6f66a 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/BETAFPV-F405/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/BETAFPV-F405/hwdef.dat @@ -103,7 +103,6 @@ PB5 LED0 OUTPUT LOW GPIO(90) define HAL_GPIO_A_LED_PIN 90 # LED strip PB6 TIM4_CH1 TIM4 PWM(5) GPIO(56) # M7 -define HAL_GPIO_LED_OFF 1 # Dataflash setup SPIDEV dataflash SPI2 DEVID1 FLASH1_CS MODE3 104*MHZ 104*MHZ diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CUAV-Nora/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CUAV-Nora/hwdef.dat index fd84470fed..5cae239ce8 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CUAV-Nora/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CUAV-Nora/hwdef.dat @@ -279,9 +279,6 @@ define HAL_GPIO_A_LED_PIN 0 define HAL_GPIO_B_LED_PIN 1 define HAL_GPIO_C_LED_PIN 2 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # use pixracer style 3-LED indicators define HAL_HAVE_PIXRACER_LED diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CUAV-X7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CUAV-X7/hwdef.dat index fa8020580b..a1fe2082a7 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CUAV-X7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CUAV-X7/hwdef.dat @@ -289,9 +289,6 @@ define HAL_GPIO_A_LED_PIN 0 define HAL_GPIO_B_LED_PIN 1 define HAL_GPIO_C_LED_PIN 2 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # use pixracer style 3-LED indicators define HAL_HAVE_PIXRACER_LED diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5/hwdef.dat index e8bb58901e..4b4825dc48 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5/hwdef.dat @@ -15,8 +15,6 @@ define HAL_GPIO_A_LED_PIN 0 define HAL_GPIO_B_LED_PIN 1 define HAL_GPIO_C_LED_PIN 2 -define HAL_GPIO_LED_OFF 1 - define HAL_HAVE_PIXRACER_LED undef IMU diff --git a/libraries/AP_HAL_ChibiOS/hwdef/F4BY/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/F4BY/hwdef.dat index d47c7d626e..7eb716d143 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/F4BY/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/F4BY/hwdef.dat @@ -141,9 +141,6 @@ define HAL_GPIO_A_LED_PIN 10 define HAL_GPIO_B_LED_PIN 11 define HAL_GPIO_C_LED_PIN 12 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - PC0 PRESSURE_SENS ADC1 SCALE(1) PC1 RSSI_IN ADC1 PC2 BATT_CURRENT_SENS ADC1 SCALE(2) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/FlyingMoonF407/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/FlyingMoonF407/hwdef.dat index 1a24d497a0..ec839060c9 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/FlyingMoonF407/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/FlyingMoonF407/hwdef.dat @@ -152,9 +152,6 @@ define HAL_GPIO_A_LED_PIN 10 define HAL_GPIO_B_LED_PIN 11 define HAL_GPIO_C_LED_PIN 12 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # analog in PC0 PRESSURE_SENS ADC1 SCALE(2) PC1 RSSI_IN ADC1 SCALE(2) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/FlyingMoonF427/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/FlyingMoonF427/hwdef.dat index 9d27f7e12e..be72bad9f4 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/FlyingMoonF427/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/FlyingMoonF427/hwdef.dat @@ -168,9 +168,6 @@ define HAL_GPIO_A_LED_PIN 10 define HAL_GPIO_B_LED_PIN 11 define HAL_GPIO_C_LED_PIN 12 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # analog in PC0 PRESSURE_SENS ADC1 SCALE(2) PC1 RSSI_IN ADC1 SCALE(2) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/FlyingMoonH743/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/FlyingMoonH743/hwdef.dat index 36bed89636..73e2099282 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/FlyingMoonH743/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/FlyingMoonH743/hwdef.dat @@ -175,9 +175,6 @@ define HAL_GPIO_A_LED_PIN 10 define HAL_GPIO_B_LED_PIN 11 define HAL_GPIO_C_LED_PIN 12 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # analog in PC0 PRESSURE_SENS ADC1 SCALE(2) PC1 RSSI_IN ADC1 SCALE(2) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/FlywooF405Pro/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/FlywooF405Pro/hwdef.dat index 3b677ac42f..1014e4d783 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/FlywooF405Pro/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/FlywooF405Pro/hwdef.dat @@ -120,7 +120,6 @@ PA9 TIM1_CH2 TIM1 PWM(9) GPIO(58) # M9 PC14 LED0 OUTPUT LOW GPIO(90) define HAL_GPIO_A_LED_PIN 90 -define HAL_GPIO_LED_OFF 1 # Dataflash setup SPIDEV dataflash SPI3 DEVID1 FLASH1_CS MODE3 104*MHZ 104*MHZ diff --git a/libraries/AP_HAL_ChibiOS/hwdef/FlywooF405S-AIO/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/FlywooF405S-AIO/hwdef.dat index ee015ec960..ff32c7d7fb 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/FlywooF405S-AIO/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/FlywooF405S-AIO/hwdef.dat @@ -108,7 +108,6 @@ PA9 TIM1_CH2 TIM1 PWM(5) GPIO(54) # M5 PC14 LED0 OUTPUT LOW GPIO(90) define HAL_GPIO_A_LED_PIN 90 -define HAL_GPIO_LED_OFF 1 # Dataflash setup SPIDEV dataflash SPI3 DEVID1 FLASH1_CS MODE3 104*MHZ 104*MHZ diff --git a/libraries/AP_HAL_ChibiOS/hwdef/FoxeerH743v1/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/FoxeerH743v1/hwdef.dat index 91c2b30506..11b5ec3caa 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/FoxeerH743v1/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/FoxeerH743v1/hwdef.dat @@ -138,7 +138,6 @@ PA8 TIM1_CH1 TIM1 PWM(9) GPIO(58) # M9 PC13 LED0 OUTPUT LOW GPIO(90) define HAL_GPIO_A_LED_PIN 90 -define HAL_GPIO_LED_OFF 1 # Dataflash setup SPIDEV dataflash SPI3 DEVID1 FLASH1_CS MODE3 104*MHZ 104*MHZ diff --git a/libraries/AP_HAL_ChibiOS/hwdef/HEEWING-F405/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/HEEWING-F405/hwdef.dat index 2fb1d8f3d5..95fa1e38c3 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/HEEWING-F405/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/HEEWING-F405/hwdef.dat @@ -27,8 +27,6 @@ PC15 LED1 OUTPUT LOW GPIO(91) # green marked as B/E define HAL_GPIO_A_LED_PIN 91 define HAL_GPIO_B_LED_PIN 90 -define HAL_GPIO_LED_OFF 1 - # --------------------- PWM ----------------------- diff --git a/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_Compass/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_Compass/hwdef.dat index 844ab6d863..21092bee22 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_Compass/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_Compass/hwdef.dat @@ -42,9 +42,6 @@ define HAL_GPIO_A_LED_PIN 0 define HAL_GPIO_B_LED_PIN 1 define HAL_GPIO_C_LED_PIN 2 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - define HAL_HAVE_PIXRACER_LED # USART2, debug diff --git a/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_GPS/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_GPS/hwdef.dat index c8ace8acb2..b05ee8478a 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_GPS/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_GPS/hwdef.dat @@ -46,9 +46,6 @@ define HAL_GPIO_A_LED_PIN 0 define HAL_GPIO_B_LED_PIN 1 define HAL_GPIO_C_LED_PIN 2 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - define HAL_HAVE_PIXRACER_LED # USART3, GPS diff --git a/libraries/AP_HAL_ChibiOS/hwdef/HolybroGPS/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/HolybroGPS/hwdef.dat index 544c1d6a98..bbb5b2bed5 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/HolybroGPS/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/HolybroGPS/hwdef.dat @@ -48,9 +48,6 @@ define HAL_GPIO_A_LED_PIN 0 define HAL_GPIO_B_LED_PIN 1 define HAL_GPIO_C_LED_PIN 2 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - define HAL_HAVE_PIXRACER_LED # USART1, GPS diff --git a/libraries/AP_HAL_ChibiOS/hwdef/JHEM_JHEF405/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/JHEM_JHEF405/hwdef.dat index 59aba5511b..ae5632c649 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/JHEM_JHEF405/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/JHEM_JHEF405/hwdef.dat @@ -110,7 +110,6 @@ PA9 TIM1_CH2 TIM1 PWM(9) GPIO(58) # LED PC14 LED0 OUTPUT LOW GPIO(90) define HAL_GPIO_A_LED_PIN 90 -define HAL_GPIO_LED_OFF 1 # Dataflash setup SPIDEV dataflash SPI3 DEVID1 FLASH1_CS MODE3 104*MHZ 104*MHZ diff --git a/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7-Wing/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7-Wing/hwdef.dat index 2e70060b5c..9123963e56 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7-Wing/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7-Wing/hwdef.dat @@ -89,7 +89,6 @@ PC15 LED0 OUTPUT LOW GPIO(90) # blue PC14 LED1 OUTPUT LOW GPIO(91) # red define HAL_GPIO_A_LED_PIN 91 define HAL_GPIO_B_LED_PIN 90 -define HAL_GPIO_LED_OFF 1 # order of UARTs (and USB) SERIAL_ORDER OTG1 UART7 USART2 USART1 USART3 UART5 USART6 UART8 OTG2 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MambaH743v4/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MambaH743v4/hwdef.dat index d2f244e887..942924ad47 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MambaH743v4/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MambaH743v4/hwdef.dat @@ -96,7 +96,6 @@ PE5 LED0 OUTPUT LOW GPIO(90) # blue PE4 LED1 OUTPUT LOW GPIO(91) # orange define HAL_GPIO_A_LED_PIN 91 define HAL_GPIO_B_LED_PIN 90 -define HAL_GPIO_LED_OFF 1 # USART1 (RX / SBUS) PA9 USART1_TX USART1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-CAN/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-CAN/hwdef.dat index d3e59c7c1f..d40dc7f189 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-CAN/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-CAN/hwdef.dat @@ -26,7 +26,6 @@ PA14 LED0 OUTPUT LOW GPIO(90) # blue marked as ACT PA13 LED1 OUTPUT LOW GPIO(91) # green marked as B/E define HAL_GPIO_A_LED_PIN 91 define HAL_GPIO_B_LED_PIN 90 -define HAL_GPIO_LED_OFF 1 # --------------------- PWM ----------------------- diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-TE/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-TE/hwdef.dat index 1af9870f18..820b64fb1a 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-TE/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-TE/hwdef.dat @@ -26,7 +26,6 @@ PA14 LED0 OUTPUT LOW GPIO(90) # blue marked as ACT PA13 LED1 OUTPUT LOW GPIO(91) # green marked as B/E define HAL_GPIO_A_LED_PIN 91 define HAL_GPIO_B_LED_PIN 90 -define HAL_GPIO_LED_OFF 1 # --------------------- PWM ----------------------- diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekF765-Wing/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekF765-Wing/hwdef.dat index b82adcc888..e00a9e3608 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekF765-Wing/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekF765-Wing/hwdef.dat @@ -94,7 +94,6 @@ PD10 LED0 OUTPUT LOW GPIO(90) # blue PD11 LED1 OUTPUT LOW GPIO(91) # green define HAL_GPIO_A_LED_PIN 91 define HAL_GPIO_B_LED_PIN 90 -define HAL_GPIO_LED_OFF 1 # USART1 (telem2) PA10 USART1_RX USART1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekH743/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekH743/hwdef.dat index 3b25bff24f..aa0776d7f5 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekH743/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekH743/hwdef.dat @@ -97,7 +97,6 @@ PE3 LED0 OUTPUT LOW GPIO(90) # blue PE4 LED1 OUTPUT LOW GPIO(91) # green define HAL_GPIO_A_LED_PIN 91 define HAL_GPIO_B_LED_PIN 90 -define HAL_GPIO_LED_OFF 1 # order of UARTs (and USB) SERIAL_ORDER OTG1 UART7 USART1 USART2 USART3 UART8 UART4 USART6 OTG2 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekH7A3/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekH7A3/hwdef.dat index 392eba37e4..6219e255d7 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekH7A3/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekH7A3/hwdef.dat @@ -80,7 +80,6 @@ PA14 LED0 OUTPUT LOW GPIO(90) # blue PA13 LED1 OUTPUT LOW GPIO(91) # green define HAL_GPIO_A_LED_PIN 91 define HAL_GPIO_B_LED_PIN 90 -define HAL_GPIO_LED_OFF 1 # --------------------- UARTs --------------------------- diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MicoAir405v2/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MicoAir405v2/hwdef.dat index 3ec12670e9..fd73218c66 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MicoAir405v2/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MicoAir405v2/hwdef.dat @@ -32,8 +32,6 @@ define HAL_GPIO_A_LED_PIN 0 define HAL_GPIO_B_LED_PIN 2 define HAL_GPIO_C_LED_PIN 1 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 define HAL_HAVE_PIXRACER_LED # only one I2C bus diff --git a/libraries/AP_HAL_ChibiOS/hwdef/NucleoH755/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/NucleoH755/hwdef.dat index 9b4ce215a6..e1a4e30c82 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/NucleoH755/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/NucleoH755/hwdef.dat @@ -105,8 +105,6 @@ PB14 LED2 OUTPUT HIGH GPIO(1) #Red define HAL_GPIO_A_LED_PIN 0 define HAL_GPIO_B_LED_PIN 1 define HAL_GPIO_C_LED_PIN 2 -define HAL_GPIO_LED_OFF 1 -define HAL_GPIO_LED_ON 0 # I2C I2C_ORDER I2C2 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/OrqaF405Pro/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/OrqaF405Pro/hwdef.dat index ffa8aff06c..dd0d0c1949 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/OrqaF405Pro/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/OrqaF405Pro/hwdef.dat @@ -114,7 +114,6 @@ define HAL_GPIO_B_LED_PIN 90 # Green PB4 LED1 OUTPUT LOW GPIO(91) define HAL_GPIO_A_LED_PIN 91 -define HAL_GPIO_LED_OFF 1 # Dataflash setup SPIDEV dataflash SPI3 DEVID1 FLASH1_CS MODE3 104*MHZ 104*MHZ diff --git a/libraries/AP_HAL_ChibiOS/hwdef/PixFlamingo-F767/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/PixFlamingo-F767/hwdef.dat index 37e99059b1..e32b238d94 100755 --- a/libraries/AP_HAL_ChibiOS/hwdef/PixFlamingo-F767/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/PixFlamingo-F767/hwdef.dat @@ -164,9 +164,6 @@ define HAL_BOARD_TERRAIN_DIRECTORY "/APM/TERRAIN" # pixracer has 3 LEDs, Red, Green, Blue define HAL_HAVE_PIXRACER_LED -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - PE10 LED_RED OUTPUT GPIO(0) PE8 LED_GREEN OUTPUT GPIO(1) PE7 LED_BLUE OUTPUT GPIO(2) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/PixFlamingo/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/PixFlamingo/hwdef.dat index b794deafff..8bf13bc523 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/PixFlamingo/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/PixFlamingo/hwdef.dat @@ -143,9 +143,6 @@ define HAL_OS_FATFS_IO 1 # pixracer has 3 LEDs, Red, Green, Blue define HAL_HAVE_PIXRACER_LED -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # LED setup for PixracerLED driver PE8 LED_RED OUTPUT GPIO(0) PE7 LED_GREEN OUTPUT GPIO(1) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/PixPilot-C3/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/PixPilot-C3/hwdef.dat index 720f6b747c..9677e35f25 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/PixPilot-C3/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/PixPilot-C3/hwdef.dat @@ -154,8 +154,6 @@ PG5 VDD_BRICK2_nVALID INPUT PULLUP PA8 LED_RED OUTPUT OPENDRAIN GPIO(11) HIGH PB1 LED_GREEN OUTPUT OPENDRAIN GPIO(12) HIGH PC15 LED_BLUE OUTPUT OPENDRAIN GPIO(13) HIGH -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 define HAL_GPIO_A_LED_PIN 11 define HAL_GPIO_B_LED_PIN 12 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/PixPilot-V3/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/PixPilot-V3/hwdef.dat index da84f273b9..490fb17d2c 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/PixPilot-V3/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/PixPilot-V3/hwdef.dat @@ -163,8 +163,6 @@ PG5 VDD_BRICK2_nVALID INPUT PULLUP PC11 LED_RED OUTPUT OPENDRAIN GPIO(11) HIGH PC10 LED_GREEN OUTPUT OPENDRAIN GPIO(12) HIGH PC12 LED_BLUE OUTPUT OPENDRAIN GPIO(13) HIGH -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 define HAL_GPIO_A_LED_PIN 11 define HAL_GPIO_B_LED_PIN 12 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/PixPilot-V6/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/PixPilot-V6/hwdef.dat index eefc40ab6f..e5581ab3d3 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/PixPilot-V6/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/PixPilot-V6/hwdef.dat @@ -159,8 +159,6 @@ PD14 TIM4_CH3 TIM4 PWM(6) GPIO(55) PB4 LED_RED OUTPUT OPENDRAIN GPIO(11) HIGH PB3 LED_GREEN OUTPUT OPENDRAIN GPIO(12) HIGH PB5 LED_BLUE OUTPUT OPENDRAIN GPIO(13) HIGH -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 define HAL_GPIO_A_LED_PIN 11 define HAL_GPIO_B_LED_PIN 13 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Pixracer/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Pixracer/hwdef.dat index 73175415bb..47a9ccc82e 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Pixracer/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Pixracer/hwdef.dat @@ -183,9 +183,6 @@ define HAL_OS_FATFS_IO 1 # pixracer has 3 LEDs, Red, Green, Blue define HAL_HAVE_PIXRACER_LED -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # LED setup for PixracerLED driver PB11 LED_RED OUTPUT GPIO(0) PB1 LED_GREEN OUTPUT GPIO(1) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/QioTekAdeptF407/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/QioTekAdeptF407/hwdef.dat index c7e5a39cf2..1134e6616b 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/QioTekAdeptF407/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/QioTekAdeptF407/hwdef.dat @@ -163,9 +163,6 @@ define HAL_GPIO_A_LED_PIN 10 define HAL_GPIO_B_LED_PIN 11 define HAL_GPIO_C_LED_PIN 12 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # analog in 6.6V PC1 ADC_1 ADC1 SCALE(2) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotF427/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotF427/hwdef.dat index c12e1e8654..1c5ca9d2da 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotF427/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotF427/hwdef.dat @@ -180,9 +180,6 @@ define HAL_GPIO_A_LED_PIN 10 define HAL_GPIO_B_LED_PIN 11 define HAL_GPIO_C_LED_PIN 12 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # analog in PC0 PRESSURE_SENS ADC1 SCALE(2) PC1 RSSI_IN ADC1 SCALE(2) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotH743/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotH743/hwdef.dat index c10e1dee14..2f97bf0f1e 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotH743/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotH743/hwdef.dat @@ -206,9 +206,6 @@ define HAL_GPIO_A_LED_PIN 10 define HAL_GPIO_B_LED_PIN 11 define HAL_GPIO_C_LED_PIN 12 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - #define GPIOs PE15 HEATER_EN OUTPUT LOW GPIO(80) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/R9Pilot/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/R9Pilot/hwdef.dat index e6de0e4863..110df4f7ad 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/R9Pilot/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/R9Pilot/hwdef.dat @@ -116,7 +116,6 @@ PE0 LED0 OUTPUT LOW GPIO(90) # blue PA3 LED1 OUTPUT LOW GPIO(91) # green define HAL_GPIO_A_LED_PIN 91 define HAL_GPIO_B_LED_PIN 90 -define HAL_GPIO_LED_OFF 1 # PWM outputs PB0 TIM3_CH3 TIM3 PWM(1) GPIO(50) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/RADIX2HD/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/RADIX2HD/hwdef.dat index d72d49438a..5fdeaff78a 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/RADIX2HD/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/RADIX2HD/hwdef.dat @@ -148,9 +148,6 @@ define HAL_GPIO_A_LED_PIN 10 define HAL_GPIO_B_LED_PIN 11 define HAL_GPIO_C_LED_PIN 12 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - define HAL_HAVE_PIXRACER_LED # 9V regulator switch diff --git a/libraries/AP_HAL_ChibiOS/hwdef/RadiolinkPIX6/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/RadiolinkPIX6/hwdef.dat index abd4155c17..0cd8456398 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/RadiolinkPIX6/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/RadiolinkPIX6/hwdef.dat @@ -210,8 +210,6 @@ PC7 LED_BLUE OUTPUT GPIO(92) define HAL_GPIO_A_LED_PIN 90 define HAL_GPIO_B_LED_PIN 91 define HAL_GPIO_C_LED_PIN 92 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 define HAL_HAVE_PIXRACER_LED diff --git a/libraries/AP_HAL_ChibiOS/hwdef/SkystarsH7HD/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/SkystarsH7HD/hwdef.dat index 78239e60a1..c36b9f7f19 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/SkystarsH7HD/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/SkystarsH7HD/hwdef.dat @@ -119,7 +119,6 @@ PE3 LED0 OUTPUT LOW GPIO(90) # red, labelled as LED1 PE4 LED1 OUTPUT LOW GPIO(91) # blue, labelled as LED2 define HAL_GPIO_A_LED_PIN 90 define HAL_GPIO_B_LED_PIN 91 -define HAL_GPIO_LED_OFF 1 # USART1 PA9 USART1_TX USART1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405Mini/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405Mini/hwdef.dat index ff55a5148d..26235823dc 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405Mini/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405Mini/hwdef.dat @@ -115,7 +115,6 @@ PA8 TIM1_CH1 TIM1 PWM(5) GPIO(54) # M5 PC13 LED0 OUTPUT LOW GPIO(90) define HAL_GPIO_A_LED_PIN 90 -define HAL_GPIO_LED_OFF 1 # Dataflash setup SPIDEV dataflash SPI3 DEVID1 FLASH1_CS MODE3 104*MHZ 104*MHZ diff --git a/libraries/AP_HAL_ChibiOS/hwdef/TMotorH743/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/TMotorH743/hwdef.dat index 211d73b8e5..d8d9c1aaf3 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/TMotorH743/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/TMotorH743/hwdef.dat @@ -130,7 +130,6 @@ define HAL_GPIO_A_LED_PIN 91 PE4 LED2 OUTPUT LOW GPIO(92) define HAL_GPIO_B_LED_PIN 92 -define HAL_GPIO_LED_OFF 1 # Dataflash setup SPIDEV dataflash SPI3 DEVID1 FLASH1_CS MODE3 104*MHZ 104*MHZ diff --git a/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v51/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v51/hwdef.dat index b280c39e6d..b5ddd251e2 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v51/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v51/hwdef.dat @@ -134,11 +134,9 @@ define HAL_WITH_RAMTRON 1 # enable FAT filesystem define HAL_OS_FATFS_IO 1 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - define AP_NOTIFY_VRBOARD_LED_ENABLED 1 define AP_NOTIFY_EXTERNALLED_ENABLED 1 + define HAL_GPIO_A_LED_PIN 25 define HAL_GPIO_B_LED_PIN 26 define HAL_GPIO_C_LED_PIN 27 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v52/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v52/hwdef.dat index 76f1e6f986..2297ec849a 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v52/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v52/hwdef.dat @@ -134,11 +134,9 @@ define HAL_WITH_RAMTRON 1 # enable FAT filesystem define HAL_OS_FATFS_IO 1 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - define AP_NOTIFY_VRBOARD_LED_ENABLED 1 define AP_NOTIFY_EXTERNALLED_ENABLED 1 + define HAL_GPIO_A_LED_PIN 25 define HAL_GPIO_B_LED_PIN 26 define HAL_GPIO_C_LED_PIN 27 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v54/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v54/hwdef.dat index cd1dd379aa..aaacb68d48 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v54/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v54/hwdef.dat @@ -135,11 +135,9 @@ define HAL_WITH_RAMTRON 1 # enable FAT filesystem define HAL_OS_FATFS_IO 1 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - define AP_NOTIFY_VRBOARD_LED_ENABLED 1 define AP_NOTIFY_EXTERNALLED_ENABLED 1 + define HAL_GPIO_A_LED_PIN 25 define HAL_GPIO_B_LED_PIN 26 define HAL_GPIO_C_LED_PIN 27 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/VRCore-v10/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/VRCore-v10/hwdef.dat index 8d2190f8aa..4668cfcc9f 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/VRCore-v10/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/VRCore-v10/hwdef.dat @@ -134,11 +134,9 @@ define HAL_WITH_RAMTRON 1 # enable FAT filesystem define HAL_OS_FATFS_IO 1 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - define AP_NOTIFY_VRBOARD_LED_ENABLED 1 define AP_NOTIFY_EXTERNALLED_ENABLED 1 + define HAL_GPIO_A_LED_PIN 25 define HAL_GPIO_B_LED_PIN 26 define HAL_GPIO_C_LED_PIN 27 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/VRUBrain-v51/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/VRUBrain-v51/hwdef.dat index 49b524a60a..51c57cf19f 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/VRUBrain-v51/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/VRUBrain-v51/hwdef.dat @@ -137,11 +137,9 @@ FLASH_RESERVE_START_KB 64 # enable FAT filesystem define HAL_OS_FATFS_IO 1 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - define AP_NOTIFY_VRBOARD_LED_ENABLED 1 define AP_NOTIFY_EXTERNALLED_ENABLED 1 + define HAL_GPIO_A_LED_PIN 25 define HAL_GPIO_B_LED_PIN 26 define HAL_GPIO_C_LED_PIN 27 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/YJUAV_A6/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/YJUAV_A6/hwdef.dat index 905b651615..e512d0e0d1 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/YJUAV_A6/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/YJUAV_A6/hwdef.dat @@ -158,9 +158,6 @@ define HAL_GPIO_A_LED_PIN 0 define HAL_GPIO_B_LED_PIN 1 define HAL_GPIO_C_LED_PIN 2 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # use pixracer style 3-LED indicators define HAL_HAVE_PIXRACER_LED diff --git a/libraries/AP_HAL_ChibiOS/hwdef/YJUAV_A6SE/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/YJUAV_A6SE/hwdef.dat index bc59ca460b..7a541d4e8e 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/YJUAV_A6SE/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/YJUAV_A6SE/hwdef.dat @@ -171,9 +171,6 @@ define HAL_GPIO_A_LED_PIN 0 define HAL_GPIO_B_LED_PIN 1 define HAL_GPIO_C_LED_PIN 2 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # use pixracer style 3-LED indicators define HAL_HAVE_PIXRACER_LED diff --git a/libraries/AP_HAL_ChibiOS/hwdef/YJUAV_A6SE_H743/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/YJUAV_A6SE_H743/hwdef.dat index 206b3a81bb..1072cba1a8 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/YJUAV_A6SE_H743/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/YJUAV_A6SE_H743/hwdef.dat @@ -178,9 +178,6 @@ define HAL_GPIO_A_LED_PIN 0 define HAL_GPIO_B_LED_PIN 1 define HAL_GPIO_C_LED_PIN 2 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # use pixracer style 3-LED indicators define HAL_HAVE_PIXRACER_LED diff --git a/libraries/AP_HAL_ChibiOS/hwdef/YJUAV_A6Ultra/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/YJUAV_A6Ultra/hwdef.dat index 6d2d24f2a6..744f7f2187 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/YJUAV_A6Ultra/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/YJUAV_A6Ultra/hwdef.dat @@ -190,9 +190,6 @@ define HAL_GPIO_A_LED_PIN 0 define HAL_GPIO_B_LED_PIN 1 define HAL_GPIO_C_LED_PIN 2 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # use pixracer style 3-LED indicators define HAL_HAVE_PIXRACER_LED diff --git a/libraries/AP_HAL_ChibiOS/hwdef/luminousbee4/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/luminousbee4/hwdef.dat index e3d937b832..75f7ded743 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/luminousbee4/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/luminousbee4/hwdef.dat @@ -144,9 +144,6 @@ define HAL_OS_FATFS_IO 1 # pixracer has 3 LEDs, Red, Green, Blue define HAL_HAVE_PIXRACER_LED -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # LED setup for PixracerLED driver PB11 LED_RED OUTPUT GPIO(0) PB1 LED_GREEN OUTPUT GPIO(1) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/luminousbee5/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/luminousbee5/hwdef.dat index 49092d39cd..fe8fb67c4f 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/luminousbee5/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/luminousbee5/hwdef.dat @@ -201,9 +201,6 @@ define HAL_OS_FATFS_IO 1 # pixracer has 3 LEDs, Red, Green, Blue define HAL_HAVE_PIXRACER_LED -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # LED setup for PixracerLED driver PB11 LED_RED OUTPUT GPIO(0) PB1 LED_GREEN OUTPUT GPIO(1) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroClassic/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroClassic/hwdef.dat index 996e09db31..e5896d6027 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroClassic/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroClassic/hwdef.dat @@ -264,9 +264,6 @@ define HAL_OS_FATFS_IO 1 # Control Zero has a TriColor LED, Red, Green, Blue define HAL_HAVE_PIXRACER_LED -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # LED setup for PixracerLED driver PB4 LED_R OUTPUT HIGH GPIO(0) PB5 LED_G OUTPUT HIGH GPIO(1) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroF7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroF7/hwdef.dat index dbf54bfe8a..17dfbe89dc 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroF7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroF7/hwdef.dat @@ -236,9 +236,6 @@ define HAL_BATT_CURR_SCALE 17.0 # Control Zero has a TriColor LED, Red, Green, Blue define HAL_HAVE_PIXRACER_LED -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # LED setup for PixracerLED driver PB11 LED_R OUTPUT HIGH GPIO(0) PB1 LED_G OUTPUT HIGH GPIO(1) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroH7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroH7/hwdef.dat index 05b5df9062..68abdc7ecd 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroH7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroH7/hwdef.dat @@ -229,9 +229,6 @@ define HAL_OS_FATFS_IO 1 # Control Zero has a TriColor LED, Red, Green, Blue define HAL_HAVE_PIXRACER_LED -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # LED setup for PixracerLED driver PB11 LED_R OUTPUT HIGH GPIO(0) PB1 LED_G OUTPUT HIGH GPIO(1) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroOEMH7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroOEMH7/hwdef.dat index a727635ce7..ca7a6acfb8 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroOEMH7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroOEMH7/hwdef.dat @@ -241,9 +241,6 @@ define HAL_OS_FATFS_IO 1 # Control Zero has a TriColor LED, Red, Green, Blue define HAL_HAVE_PIXRACER_LED -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # LED setup for PixracerLED driver PB11 LED_R OUTPUT HIGH GPIO(0) PB1 LED_G OUTPUT HIGH GPIO(1) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/mRoNexus/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/mRoNexus/hwdef.dat index 36fc767074..a6c5ed7e1b 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/mRoNexus/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/mRoNexus/hwdef.dat @@ -155,9 +155,6 @@ define HAL_OS_FATFS_IO 1 # Nexus has a TriColor LED like the Pixracer, Red, Green, Blue define HAL_HAVE_PIXRACER_LED -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # LED setup for PixracerLED driver PA6 LED_R OUTPUT HIGH GPIO(0) PA7 LED_G OUTPUT HIGH GPIO(1) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/mRoPixracerPro/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/mRoPixracerPro/hwdef.dat index 95a30a69ed..7c348d094d 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/mRoPixracerPro/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/mRoPixracerPro/hwdef.dat @@ -249,9 +249,6 @@ define HAL_BATT_CURR_SCALE 17.0 # Pixracer Pro has a TriColor LED, Red, Green, Blue define HAL_HAVE_PIXRACER_LED -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # LED setup for PixracerLED driver PB11 LED_R OUTPUT HIGH GPIO(0) PB1 LED_G OUTPUT HIGH GPIO(1) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/mini-pix/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/mini-pix/hwdef.dat index eef2648885..c581f60dd5 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/mini-pix/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/mini-pix/hwdef.dat @@ -145,8 +145,5 @@ define HAL_GPIO_A_LED_PIN 0 define HAL_GPIO_B_LED_PIN 1 define HAL_GPIO_C_LED_PIN 2 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - include ../include/minimize_features.inc diff --git a/libraries/AP_HAL_ChibiOS/hwdef/rFCU/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/rFCU/hwdef.dat index a4282d1b03..f5fccf0f80 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/rFCU/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/rFCU/hwdef.dat @@ -285,7 +285,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 # use pixracer style 3-LED indicators define HAL_HAVE_PIXRACER_LED diff --git a/libraries/AP_HAL_ChibiOS/hwdef/rGNSS/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/rGNSS/hwdef.dat index 2cb0aad262..4af59621fb 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/rGNSS/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/rGNSS/hwdef.dat @@ -41,7 +41,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_HAVE_PIXRACER_LED diff --git a/libraries/AP_HAL_ChibiOS/hwdef/sparky2/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/sparky2/hwdef.dat index 9d026c7552..2f03aa1ac7 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/sparky2/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/sparky2/hwdef.dat @@ -28,9 +28,6 @@ define HAL_GPIO_A_LED_PIN 0 define HAL_GPIO_B_LED_PIN 1 define HAL_GPIO_C_LED_PIN 2 -define HAL_GPIO_LED_ON 0 -define HAL_GPIO_LED_OFF 1 - # ---------I2C------------- # only one I2C bus I2C_ORDER I2C1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/speedybeef4v4/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/speedybeef4v4/hwdef.dat index 3c23f66955..a70e3b80e8 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/speedybeef4v4/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/speedybeef4v4/hwdef.dat @@ -123,7 +123,6 @@ PA8 TIM1_CH1 TIM1 PWM(9) GPIO(58) # M9 PC13 LED0 OUTPUT LOW GPIO(90) define HAL_GPIO_A_LED_PIN 90 -define HAL_GPIO_LED_OFF 1 # OSD setup SPIDEV osd SPI2 DEVID1 OSD1_CS MODE0 10*MHZ 10*MHZ