diff --git a/libraries/AP_HAL_ChibiOS/hwdef/AtomRCF405NAVI/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/AtomRCF405NAVI/hwdef.dat index 4bd5d08d8f..be2dc4b5cc 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/AtomRCF405NAVI/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/AtomRCF405NAVI/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/BeastF7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/BeastF7/hwdef.dat index 0e1c5956c4..b86f3d245f 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/BeastF7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/BeastF7/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/BeastH7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/BeastH7/hwdef.dat index f54aa398d7..4c7e32449c 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/BeastH7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/BeastH7/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/DevEBoxH7v2/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/DevEBoxH7v2/hwdef.dat index 6090a14889..2129cbe22a 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/DevEBoxH7v2/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/DevEBoxH7v2/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/F35Lightning/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/F35Lightning/hwdef.dat index 51e56d07eb..c04f2842c9 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/F35Lightning/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/F35Lightning/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/FlywooF405S-AIO/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/FlywooF405S-AIO/hwdef.dat index 0e0fc46160..cf601ebd6d 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/FlywooF405S-AIO/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/FlywooF405S-AIO/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/FlywooF745/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/FlywooF745/hwdef.dat index e09813d897..487af5bd4b 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/FlywooF745/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/FlywooF745/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/FoxeerH743v1/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/FoxeerH743v1/hwdef.dat index a49ca87647..a6a931b12a 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/FoxeerH743v1/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/FoxeerH743v1/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/JHEMCU-GSF405A/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/JHEMCU-GSF405A/hwdef.dat index 82813917c6..53a126f955 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/JHEMCU-GSF405A/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/JHEMCU-GSF405A/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/KakuteF4/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/KakuteF4/hwdef.dat index 657f2bf4f8..38ed45914e 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/KakuteF4/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/KakuteF4/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7/hwdef.dat index 68627e7777..4240f7ced2 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7Mini/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7Mini/hwdef.dat index 6961039267..6bb6f8508e 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7Mini/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7Mini/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7/hwdef.dat index 6f4a9d7996..cc6ca6bff7 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7Mini/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7Mini/hwdef.dat index 360692be56..73626af140 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7Mini/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7Mini/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MambaF405US-I2C/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MambaF405US-I2C/hwdef.dat index d8868dc90f..5bc8101270 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MambaF405US-I2C/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MambaF405US-I2C/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MambaF405v2/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MambaF405v2/hwdef.dat index 7a9e320538..0988004939 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MambaF405v2/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MambaF405v2/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MambaH743v4/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MambaH743v4/hwdef.dat index 0e5eff683c..80f24002c4 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MambaH743v4/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MambaH743v4/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing/hwdef.dat index 2e40b68630..0a1d7dd0e7 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing/hwdef.dat @@ -128,7 +128,7 @@ PC13 VBUS INPUT OPENDRAIN PC15 BUZZER OUTPUT GPIO(80) LOW define HAL_BUZZER_PIN 80 -define HAL_BUZZER_ON 1 + ################################################# diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405/hwdef.dat index fdd081e5cf..4d79482a52 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekH743-bdshot/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekH743-bdshot/hwdef.dat index 491cf975a8..d8f166475c 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekH743-bdshot/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekH743-bdshot/hwdef.dat @@ -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* diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MazzyStarDrone/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MazzyStarDrone/hwdef.dat index 069a40bfe9..1e3731a900 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MazzyStarDrone/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MazzyStarDrone/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/OmnibusNanoV6/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/OmnibusNanoV6/hwdef.dat index f974ea9ac1..5c46bd11c9 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/OmnibusNanoV6/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/OmnibusNanoV6/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/PixFlamingo/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/PixFlamingo/hwdef.dat index 57798aaf87..65becd49c9 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/PixFlamingo/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/PixFlamingo/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/ReaperF745/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/ReaperF745/hwdef.dat index 5597a06cd0..97857bebc0 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/ReaperF745/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/ReaperF745/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/SPRacingH7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/SPRacingH7/hwdef.dat index 97cfa7fd51..b5ba248049 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/SPRacingH7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/SPRacingH7/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/SkystarsH7HD/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/SkystarsH7HD/hwdef.dat index 0d5eb91402..b81bb3afca 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/SkystarsH7HD/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/SkystarsH7HD/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405WING/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405WING/hwdef.dat index 81aceeeb7b..6db262ae94 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405WING/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405WING/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v51/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v51/hwdef.dat index d0db653140..309255dbd0 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v51/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v51/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v52/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v52/hwdef.dat index f6fd3bad37..211753e6db 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v52/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v52/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v54/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v54/hwdef.dat index cd1ed8a517..8c09440218 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v54/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v54/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/VRCore-v10/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/VRCore-v10/hwdef.dat index 8b0b2825f4..fada0a2ba5 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/VRCore-v10/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/VRCore-v10/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/VRUBrain-v51/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/VRUBrain-v51/hwdef.dat index 2262975204..d1ec5e5a97 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/VRUBrain-v51/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/VRUBrain-v51/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/convert_betaflight_unified.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/convert_betaflight_unified.py index d5a01ae3f9..4c1a259e79 100755 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/convert_betaflight_unified.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/convert_betaflight_unified.py @@ -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) \ No newline at end of file +convert_bootloader(fname, board_id) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/speedybeef4/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/speedybeef4/hwdef.dat index 3a898b13bd..4a5ebb3136 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/speedybeef4/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/speedybeef4/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/speedybeef4v3/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/speedybeef4v3/hwdef.dat index dc6ee3673c..96758c499d 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/speedybeef4v3/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/speedybeef4v3/hwdef.dat @@ -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