hwdef: remove HAL_GPIO lines which are simply the default values

... or the _OFF entry, which is simply !HAL_GPIO_MED_ON
This commit is contained in:
Peter Barker 2024-03-22 13:25:56 +11:00 committed by Peter Barker
parent 99dd85d51c
commit 10627d296d
71 changed files with 5 additions and 161 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 -----------------------

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 -----------------------

View File

@ -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 -----------------------

View File

@ -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

View File

@ -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

View File

@ -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 ---------------------------

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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