src.nth.io/

summaryrefslogtreecommitdiff
path: root/main/include/bell.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/include/bell.h')
-rw-r--r--main/include/bell.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/main/include/bell.h b/main/include/bell.h
new file mode 100644
index 0000000..9dded29
--- /dev/null
+++ b/main/include/bell.h
@@ -0,0 +1,27 @@
+#include <stdio.h>
+#include <string.h>
+#include <freertos/FreeRTOS.h>
+#include <freertos/task.h>
+#include <freertos/timers.h>
+#include <freertos/queue.h>
+#include <esp_log.h>
+#include <driver/gpio.h>
+#include <driver/adc.h>
+
+#include <hap.h>
+
+#include <hap_apple_servs.h>
+#include <hap_apple_chars.h>
+
+#include <app_wifi.h>
+#include <app_hap_setup_payload.h>
+
+bool is_bell_ringing(int val);
+
+void IRAM_ATTR intercom_bell_isr(void *arg);
+
+void intercom_bell_ring();
+
+void intercom_bell_timer_cb(TimerHandle_t timer);
+
+hap_serv_t *intercom_bell_init(uint32_t key_gpio_pin);