src.nth.io/

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2021-03-13 08:47:16 -0600
committerLuke Hoersten <[email protected]>2021-03-13 08:47:16 -0600
commit1db8c10bfd56257ab118cb2e2668d54b1624412f (patch)
treef511b2351785ed80db7b9b7b3ef553c0611e5db4
parentca72e0e90f850ff5d757be2f6dc658c5d558620c (diff)
Added some debug logging.
-rw-r--r--main/Kconfig.projbuild20
-rw-r--r--main/app_main.c9
2 files changed, 17 insertions, 12 deletions
diff --git a/main/Kconfig.projbuild b/main/Kconfig.projbuild
index 9fa495f..4d1f973 100644
--- a/main/Kconfig.projbuild
+++ b/main/Kconfig.projbuild
@@ -31,35 +31,35 @@ menu "HomeKit Intercom Configuration"
config HOMEKIT_INTERCOM_LOCK_GPIO_PIN
int "Intercom lock GPIO pin number"
- range 0 34
+ range 0 39
default 21
help
GPIO pin number to control lock relay.
config HOMEKIT_INTERCOM_BELL_GPIO_PIN
int "Intercom bell GPIO pin number"
- range 0 34
- default 34
+ range 0 39
+ default 33
help
GPIO pin number from which to read intercom bell signal.
config HOMEKIT_INTERCOM_BELL_ADC1_CHANNEL
- int "Intercom bell ADC1 channel number"
- range 0 7
- default 6
- help
- ADC1 channel number from which to read intercom bell signal.
+ int "Intercom bell ADC1 channel number"
+ range 0 12
+ default 9
+ help
+ ADC1 channel number from which to read intercom bell signal.
config HOMEKIT_INTERCOM_WIFI_RESET_GPIO_PIN
int "Intercom WIFI reset GPIO pin number"
- range 0 34
+ range 0 39
default 0
help
GPIO pin number to reset wifi.
config HOMEKIT_INTERCOM_LED_GPIO_PIN
int "LED GPIO pin number"
- range 0 34
+ range 0 39
default 13
help
GPIO pin number for LED.
diff --git a/main/app_main.c b/main/app_main.c
index fd462b4..be304cb 100644
--- a/main/app_main.c
+++ b/main/app_main.c
@@ -71,10 +71,15 @@ static void intercom_thread_entry(void *p)
hap_enable_mfi_auth(HAP_MFI_AUTH_HW); /* Enable Hardware MFi authentication (applicable only for MFi variant of SDK) */
- app_wifi_init(); /* Initialize Wi-Fi */
- hap_start(); /* After all the initializations are done, start the HAP core */
+ app_wifi_init(); /* Initialize Wi-Fi */
+ hap_start(); /* After all the initializations are done, start the HAP core */
+
+ ESP_LOGI(TAG, "Intercom HAP initialized");
+
app_wifi_start(portMAX_DELAY); /* Start Wi-Fi */
+ ESP_LOGI(TAG, "Intercom WIFI initialized");
+
vTaskDelete(NULL); /* The task ends here. The read/write callbacks will be invoked by the HAP Framework */
}