diff options
| author | Luke Hoersten <[email protected]> | 2021-03-12 11:56:07 -0600 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2021-03-12 11:56:07 -0600 |
| commit | c6d3d96ed6a659f7a3c1f616caebe325a3d139bd (patch) | |
| tree | 470016b10b16e31a8190da4fb769725b6bd9898a /main/include/lock.h | |
| parent | 2d08f681e6e53b71a295b0ab05155f4315fea76f (diff) | |
Broke out services into their own files.
Diffstat (limited to 'main/include/lock.h')
| -rw-r--r-- | main/include/lock.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/main/include/lock.h b/main/include/lock.h new file mode 100644 index 0000000..983180c --- /dev/null +++ b/main/include/lock.h @@ -0,0 +1,29 @@ +#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> + +void intercom_lock_unsecure(); + +void intercom_lock_secure(); + +void intercom_lock_timeout(); + +int intercom_lock_write_cb(hap_write_data_t write_data[], int count, void *serv_priv, void *write_priv); + +void intercom_lock_timer_cb(TimerHandle_t timer); + +hap_serv_t *intercom_lock_init(uint32_t key_gpio_pin); |
