From c8fb7275dfcf6b5ec4c1374e4f0f8d2d3758b89e Mon Sep 17 00:00:00 2001 From: yuanjiong Date: Tue, 26 Oct 2021 17:01:27 +0800 Subject: [PATCH] :fire: remove system_reg.h --- components/modules/button/who_adc_button.h | 7 +++---- components/modules/button/who_button.h | 5 ++--- 2 files changed, 5 insertions(+), 7 deletions(-) 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 }