src.nth.io/

summaryrefslogtreecommitdiff
path: root/main/include/bell.h
blob: 41f133ab8064d09ea03b7b942a6e684dcb844875 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <freertos/FreeRTOS.h>
#include <freertos/timers.h>
#include <hap.h>

bool is_bell_ringing(int val);

void intercom_bell_read(void *p);

void IRAM_ATTR intercom_bell_isr(void *arg);

void intercom_bell_timer_cb(TimerHandle_t timer);

void intercom_bell_isr_gpio_init();

void intercom_bell_adc_gpio_init();

hap_serv_t *intercom_bell_init();