AP_HAL_ChibiOS: rename/remove HAL_BUZZER_ON to DEFAULT_BUZZ_ON_LVL

This commit is contained in:
Henry Wurzburg 2023-04-22 16:11:08 -05:00 committed by Peter Barker
parent 0d8512cdfb
commit efd0937568
35 changed files with 35 additions and 36 deletions

View File

@ -29,7 +29,7 @@ define HAL_GPIO_B_LED_PIN 1
# buzzer
PC5 BUZZER OUTPUT GPIO(80) LOW
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
# spi1 bus for IMU

View File

@ -26,7 +26,7 @@ SERIAL_ORDER OTG1 USART1 USART2 USART3 UART4 EMPTY EMPTY UART7
#PD15 TIM4_CH4 TIM4 GPIO(80) ALARM
PD15 BUZZER OUTPUT GPIO(80) LOW
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
# USB

View File

@ -27,7 +27,7 @@ SERIAL_ORDER OTG1 USART1 USART2 USART3 UART4 EMPTY EMPTY UART7
#PD15 TIM4_CH4 TIM4 GPIO(80) ALARM
PD15 BUZZER OUTPUT GPIO(80) LOW
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
# USB

View File

@ -32,7 +32,7 @@ SERIAL_ORDER OTG1 USART1 USART2 USART3 UART4 UART5 EMPTY EMPTY UART8
# Buzzer - DMA timer channel use by LEDs
PD7 BUZZER OUTPUT GPIO(80) LOW
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
# USB

View File

@ -104,7 +104,7 @@ PC4 MPU9250_DRDY INPUT
# use active buzzer instead
PA1 BUZZER OUTPUT GPIO(80) LOW
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
# I2C

View File

@ -42,7 +42,7 @@ PB12 GYRO1_CS CS
# Beeper
PC13 BUZZER OUTPUT GPIO(80) LOW
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
# SERIAL ports

View File

@ -23,7 +23,7 @@ I2C_ORDER I2C1
#PD15 TIM4_CH4 TIM4 GPIO(80) ALARM
PD15 BUZZER OUTPUT GPIO(80) LOW
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
# USB

View File

@ -45,7 +45,7 @@ PB12 GYRO1_CS CS
# Beeper
PD2 BUZZER OUTPUT GPIO(80) LOW
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
# SERIAL ports

View File

@ -85,7 +85,7 @@ DMA_NOSHARE USART1_RX TIM5_CH4 TIM5_UP
# Buzzer
PC13 BUZZER OUTPUT GPIO(80) LOW
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
# I2C1

View File

@ -29,7 +29,7 @@ PB5 LED_BLUE OUTPUT LOW GPIO(0)
# buzzer
PC9 BUZZER OUTPUT GPIO(80) LOW
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
# spi1 bus for IMU

View File

@ -27,7 +27,7 @@ SERIAL_ORDER OTG1 USART1 USART2 USART3 UART4 UART7 USART6
PD15 TIM4_CH4 TIM4 GPIO(77) ALARM
#PD15 BUZZER OUTPUT GPIO(80) LOW
#define HAL_BUZZER_PIN 80
#define HAL_BUZZER_ON 1
#
# PA10 IO-debug-console
PA11 OTG_FS_DM OTG1

View File

@ -27,7 +27,7 @@ SERIAL_ORDER OTG1 USART1 USART2 USART3 UART4 EMPTY USART6 UART7
PD15 TIM4_CH4 TIM4 GPIO(77) ALARM
#PD15 BUZZER OUTPUT GPIO(80) LOW
#define HAL_BUZZER_PIN 80
#define HAL_BUZZER_ON 1
#
# PA10 IO-debug-console
PA11 OTG_FS_DM OTG1

View File

@ -33,7 +33,7 @@ SERIAL_ORDER OTG1 USART1 USART2 USART3 UART4 EMPTY USART6 UART7
# buzzer
PC13 BUZZER OUTPUT LOW PULLDOWN GPIO(80)
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
# PA10 IO-debug-console

View File

@ -36,7 +36,7 @@ SERIAL_ORDER OTG1 USART1 USART2 USART3 UART4 EMPTY USART6 UART7
# buzzer
PC13 BUZZER OUTPUT LOW PULLDOWN GPIO(80)
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
define HAL_PWM_ALT_ALARM
# PA10 IO-debug-console

View File

@ -83,7 +83,7 @@ PB3 LED_EXT1 OUTPUT GPIO(30)
# Buzzer
PC13 BUZZER OUTPUT GPIO(80) LOW
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
# Note that this board needs PULLUP on I2C pins

View File

@ -79,7 +79,7 @@ PA0 LED_EXT1 OUTPUT GPIO(30)
# Buzzer
PA8 BUZZER OUTPUT GPIO(80) LOW
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
# Note that this board needs PULLUP on I2C pins

View File

@ -38,7 +38,7 @@ SERIAL_ORDER OTG1 USART1 USART2 USART3 UART4 UART5 USART6 UART7 UART8
# buzzer
PE3 BUZZER OUTPUT LOW PULLDOWN GPIO(80)
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
define HAL_PWM_ALT_ALARM

View File

@ -128,7 +128,7 @@ PC13 VBUS INPUT OPENDRAIN
PC15 BUZZER OUTPUT GPIO(80) LOW
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
#################################################

View File

@ -34,7 +34,7 @@ define HAL_GPIO_B_LED_PIN 1
# buzzer
PC13 BUZZER OUTPUT GPIO(80) LOW
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
# spi1 bus for IMU

View File

@ -38,7 +38,7 @@ PE6 TIM15_CH2 TIM15 PWM(12) GPIO(61) NODMA
# Beeper
PA15 BUZZER OUTPUT GPIO(32) LOW
define HAL_BUZZER_PIN 32
define HAL_BUZZER_ON 1
DMA_PRIORITY SPI1* SPI4*

View File

@ -27,7 +27,7 @@ SERIAL_ORDER OTG1 USART1 USART2 UART4 USART3
PD15 TIM4_CH4 TIM4 GPIO(77) ALARM
#PD15 BUZZER OUTPUT GPIO(80) LOW
#define HAL_BUZZER_PIN 80
#define HAL_BUZZER_ON 1
#
# PA10 IO-debug-console
PA11 OTG_FS_DM OTG1

View File

@ -87,7 +87,7 @@ PA8 LED OUTPUT HIGH GPIO(41)
# use active buzzer instead
PB4 BUZZER OUTPUT GPIO(80) LOW
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
PA11 OTG_FS_DM OTG1

View File

@ -67,7 +67,7 @@ PA14 JTCK-SWCLK SWD
PA15 BUZZER OUTPUT GPIO(80) LOW
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
PE2 BOOT1 INPUT

View File

@ -26,7 +26,7 @@ SERIAL_ORDER OTG1 USART1 USART2 USART3 UART4 EMPTY EMPTY UART7
# Buzzer - DMA timer channel use by LEDs
PD2 BUZZER OUTPUT GPIO(80) LOW
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
# USB

View File

@ -37,7 +37,7 @@ SERIAL_ORDER OTG1 USART1 USART2 USART3 UART4 UART5 USART6 EMPTY UART8
# Buzzer - DMA timer channel use by LEDs
PD7 BUZZER OUTPUT GPIO(80) LOW
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
# USB

View File

@ -35,7 +35,7 @@ SERIAL_ORDER OTG1 USART1 USART2 USART3 UART4 UART5 USART6 UART7 UART8
# buzzer
PB3 BUZZER OUTPUT LOW PULLDOWN GPIO(80)
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
define HAL_PWM_ALT_ALARM

View File

@ -37,7 +37,7 @@ define HAL_GPIO_B_LED_PIN 1
# buzzer
PC15 BUZZER OUTPUT GPIO(80) LOW
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
# spi1 bus for IMU

View File

@ -155,7 +155,7 @@ define RELAY2_PIN_DEFAULT 34
define RELAY3_PIN_DEFAULT 35
define HAL_BUZZER_PIN 32
define HAL_BUZZER_ON 1
# battery setup

View File

@ -155,7 +155,7 @@ define RELAY2_PIN_DEFAULT 34
define RELAY3_PIN_DEFAULT 35
define HAL_BUZZER_PIN 32
define HAL_BUZZER_ON 1
# battery setup

View File

@ -156,7 +156,7 @@ define RELAY2_PIN_DEFAULT 34
define RELAY3_PIN_DEFAULT 35
define HAL_BUZZER_PIN 32
define HAL_BUZZER_ON 1
# battery setup

View File

@ -155,7 +155,7 @@ define RELAY2_PIN_DEFAULT 34
define RELAY3_PIN_DEFAULT 35
define HAL_BUZZER_PIN 32
define HAL_BUZZER_ON 1
# battery setup

View File

@ -160,7 +160,7 @@ define RELAY2_PIN_DEFAULT 34
#define RELAY3_PIN_DEFAULT 35
define HAL_BUZZER_PIN 32
define HAL_BUZZER_ON 1
# battery setup

View File

@ -239,7 +239,6 @@ define STORAGE_FLASH_PAGE 1
f.write('''\n# Beeper
%s BUZZER OUTPUT GPIO(80) LOW
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
''' % beeper[1])
f.write("\n# SERIAL ports\n")
@ -499,4 +498,4 @@ else:
board_id = args.id
convert_file(fname, board_id)
convert_bootloader(fname, board_id)
convert_bootloader(fname, board_id)

View File

@ -33,7 +33,7 @@ define HAL_GPIO_B_LED_PIN 1
# buzzer
PC13 BUZZER OUTPUT GPIO(80) LOW
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
# spi1 bus for IMU
PA5 SPI1_SCK SPI1

View File

@ -29,7 +29,7 @@ define HAL_GPIO_A_LED_PIN 0
# buzzer
PC5 BUZZER OUTPUT GPIO(80) LOW
define HAL_BUZZER_PIN 80
define HAL_BUZZER_ON 1
# spi1 bus for IMU