src.nth.io/

summaryrefslogtreecommitdiff
path: root/main/include/bell.h
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2021-05-30 11:00:27 -0500
committerLuke Hoersten <[email protected]>2021-05-30 11:00:27 -0500
commitea05037258993adc5707333696255da0bf9e40ad (patch)
treea7b145e20062583de613f3d2aaf708194821c5db /main/include/bell.h
parentcdadb059ccc5577de4bb65660938914a3a245a60 (diff)
Doorbell interrupts working.
GPIO cannot do both ADC and ISR so split the pins.
Diffstat (limited to 'main/include/bell.h')
-rw-r--r--main/include/bell.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/main/include/bell.h b/main/include/bell.h
index 35a618e..41f133a 100644
--- a/main/include/bell.h
+++ b/main/include/bell.h
@@ -4,10 +4,14 @@
bool is_bell_ringing(int val);
-void IRAM_ATTR intercom_bell_isr(void *arg);
+void intercom_bell_read(void *p);
-void intercom_bell_ring();
+void IRAM_ATTR intercom_bell_isr(void *arg);
void intercom_bell_timer_cb(TimerHandle_t timer);
-hap_serv_t *intercom_bell_init(uint32_t key_gpio_pin);
+void intercom_bell_isr_gpio_init();
+
+void intercom_bell_adc_gpio_init();
+
+hap_serv_t *intercom_bell_init();