Implement buzzer methods with AudioContext API

This commit is contained in:
Alexsander Akers
2022-01-27 11:12:01 -05:00
parent 14e4562b7a
commit a0f8e9c8bc
7 changed files with 95 additions and 25 deletions

View File

@@ -35,6 +35,7 @@ static uint32_t watch_backup_data[8];
void watch_register_extwake_callback(uint8_t pin, ext_irq_cb_t callback, bool level) {
if (pin == BTN_ALARM) {
watch_enable_external_interrupts();
watch_register_interrupt_callback(pin, callback, level ? INTERRUPT_TRIGGER_RISING : INTERRUPT_TRIGGER_FALLING);
}
}