From 69330003954b0dcdb3eeea84c257151b90ad44bc Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 21 Apr 2023 11:35:37 +1000 Subject: [PATCH] AP_HAL_ChibiOS: add and use AP_NOTIFY_TONEALARM_ENABLED --- libraries/AP_HAL_ChibiOS/hwdef/KakuteH7Mini/hwdef.dat | 3 +-- libraries/AP_HAL_ChibiOS/hwdef/MambaH743v4/hwdef.dat | 4 +--- libraries/AP_HAL_ChibiOS/hwdef/SkystarsH7HD/hwdef.dat | 4 +--- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7Mini/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7Mini/hwdef.dat index 73626af140..88da1de221 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7Mini/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7Mini/hwdef.dat @@ -36,8 +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_PWM_ALT_ALARM +define AP_NOTIFY_TONEALARM_ENABLED 1 # PA10 IO-debug-console PA11 OTG_FS_DM OTG1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MambaH743v4/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MambaH743v4/hwdef.dat index 80f24002c4..0cd16b79bc 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MambaH743v4/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MambaH743v4/hwdef.dat @@ -38,9 +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_PWM_ALT_ALARM +define AP_NOTIFY_TONEALARM_ENABLED 1 # PA10 IO-debug-console PA11 OTG_FS_DM OTG1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/SkystarsH7HD/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/SkystarsH7HD/hwdef.dat index b81bb3afca..203309dda6 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/SkystarsH7HD/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/SkystarsH7HD/hwdef.dat @@ -35,9 +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_PWM_ALT_ALARM +define AP_NOTIFY_TONEALARM_ENABLED 1 # USB PA11 OTG_FS_DM OTG1