mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 20:33:35 +08:00
CF2: Buzzer
This commit is contained in:
committed by
Lorenz Meier
parent
c9a17fdd68
commit
83105fca95
@@ -441,6 +441,11 @@ ToneAlarm::init()
|
||||
/* configure the GPIO to the idle state */
|
||||
px4_arch_configgpio(GPIO_TONE_ALARM_IDLE);
|
||||
|
||||
#ifdef GPIO_TONE_ALARM_NEG
|
||||
|
||||
px4_arch_configgpio(GPIO_TONE_ALARM_NEG);
|
||||
#endif
|
||||
|
||||
/* clock/power on our timer */
|
||||
modifyreg32(TONE_ALARM_CLOCK_POWER_REG, 0, TONE_ALARM_CLOCK_ENABLE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user