CF2: Buzzer

This commit is contained in:
Dennis Shtatnov
2016-09-19 11:54:53 +02:00
committed by Lorenz Meier
parent c9a17fdd68
commit 83105fca95
3 changed files with 24 additions and 5 deletions
@@ -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);