diff --git a/components/modules/button/who_adc_button.h b/components/modules/button/who_adc_button.h index 25fb0af..7dcf57a 100644 --- a/components/modules/button/who_adc_button.h +++ b/components/modules/button/who_adc_button.h @@ -1,6 +1,5 @@ #pragma once #include "esp_event_loop.h" -#include "soc/system_reg.h" #include "driver/gpio.h" #include "esp_log.h" @@ -11,9 +10,9 @@ extern "C" typedef struct { - int button_index; /**< button index on the channel */ - int min; /**< min voltage in mv corresponding to the button */ - int max; /**< max voltage in mv corresponding to the button */ + int button_index; /**< button index on the channel */ + int min; /**< min voltage in mv corresponding to the button */ + int max; /**< max voltage in mv corresponding to the button */ } button_adc_config_t; /** diff --git a/components/modules/button/who_button.h b/components/modules/button/who_button.h index e5989c0..e784310 100644 --- a/components/modules/button/who_button.h +++ b/components/modules/button/who_button.h @@ -1,6 +1,5 @@ #pragma once #include "esp_event_loop.h" -#include "soc/system_reg.h" #include "driver/gpio.h" #include "esp_log.h" @@ -16,13 +15,13 @@ extern "C" { #endif -/** + /** * @brief initialize gpio button * * @param key_io_num the gpio number of the button * @param key_state_o the queue to send the button state */ -void register_button(const gpio_num_t key_io_num, const QueueHandle_t key_state_o); + void register_button(const gpio_num_t key_io_num, const QueueHandle_t key_state_o); #ifdef __cplusplus }