🔥 remove system_reg.h

pull/190/head
yuanjiong 2021-10-26 17:01:27 +08:00
parent 19bd564191
commit c8fb7275df
2 changed files with 5 additions and 7 deletions

View File

@ -1,6 +1,5 @@
#pragma once #pragma once
#include "esp_event_loop.h" #include "esp_event_loop.h"
#include "soc/system_reg.h"
#include "driver/gpio.h" #include "driver/gpio.h"
#include "esp_log.h" #include "esp_log.h"
@ -11,9 +10,9 @@ extern "C"
typedef struct typedef struct
{ {
int button_index; /**< button index on the channel */ int button_index; /**< button index on the channel */
int min; /**< min voltage in mv corresponding to the button */ int min; /**< min voltage in mv corresponding to the button */
int max; /**< max voltage in mv corresponding to the button */ int max; /**< max voltage in mv corresponding to the button */
} button_adc_config_t; } button_adc_config_t;
/** /**

View File

@ -1,6 +1,5 @@
#pragma once #pragma once
#include "esp_event_loop.h" #include "esp_event_loop.h"
#include "soc/system_reg.h"
#include "driver/gpio.h" #include "driver/gpio.h"
#include "esp_log.h" #include "esp_log.h"
@ -16,13 +15,13 @@ extern "C"
{ {
#endif #endif
/** /**
* @brief initialize gpio button * @brief initialize gpio button
* *
* @param key_io_num the gpio number of the button * @param key_io_num the gpio number of the button
* @param key_state_o the queue to send the button state * @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 #ifdef __cplusplus
} }