esp32/machine_rtc: Move export declaration from .c to common .h file.
This commit is contained in:
parent
abec47a1cd
commit
60c6b880fa
@ -38,8 +38,6 @@
|
||||
#include "machine_rtc.h"
|
||||
#include "modesp32.h"
|
||||
|
||||
extern machine_rtc_config_t machine_rtc_config;
|
||||
|
||||
typedef struct _machine_pin_obj_t {
|
||||
mp_obj_base_t base;
|
||||
gpio_num_t id;
|
||||
|
@ -39,4 +39,6 @@ typedef struct {
|
||||
bool ext1_level : 1;
|
||||
} machine_rtc_config_t;
|
||||
|
||||
extern machine_rtc_config_t machine_rtc_config;
|
||||
|
||||
#endif
|
||||
|
@ -40,8 +40,6 @@
|
||||
#include "machine_rtc.h"
|
||||
#include "modesp32.h"
|
||||
|
||||
extern machine_rtc_config_t machine_rtc_config;
|
||||
|
||||
STATIC mp_obj_t esp32_wake_on_touch(const mp_obj_t wake) {
|
||||
|
||||
if (machine_rtc_config.ext0_pin != -1) {
|
||||
|
@ -49,8 +49,6 @@
|
||||
|
||||
#if MICROPY_PY_MACHINE
|
||||
|
||||
extern machine_rtc_config_t machine_rtc_config;
|
||||
|
||||
typedef enum {
|
||||
MP_PWRON_RESET = 1,
|
||||
MP_HARD_RESET,
|
||||
|
Loading…
Reference in New Issue
Block a user