From 3a40ba1d3eab2843f0f5b92e8c5f9f20ade1c68c Mon Sep 17 00:00:00 2001 From: Mark Whitehorn Date: Thu, 8 Feb 2018 14:23:18 -0700 Subject: [PATCH] AP_HAL_ChibiOS: add buzzer support to hwdef.dat for fmuv3 --- libraries/AP_HAL_ChibiOS/hwdef/fmuv3/hwdef.dat | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/fmuv3/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/fmuv3/hwdef.dat index 87cafc0318..bd54b7ed56 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/fmuv3/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/fmuv3/hwdef.dat @@ -13,6 +13,12 @@ OSCILLATOR_HZ 24000000 # board voltage STM32_VDD 330U +# ChibiOS system timer +STM32_ST_USE_TIMER 5 + +# ArduPilot highres timer +HRT_TIMER 6 + # flash size FLASH_SIZE_KB 2048 @@ -53,7 +59,9 @@ PA11 OTG_FS_DM OTG1 PA12 OTG_FS_DP OTG1 PA13 JTMS-SWDIO SWD PA14 JTCK-SWCLK SWD -# PA15 ALARM + +# PWM output for buzzer +PA15 TIM2_CH1 TIM2 GPIO(77) ALARM PB0 EXTERN_GPIO1 OUTPUT GPIO(1) PB1 EXTERN_GPIO2 OUTPUT GPIO(2)