Skip to content
Snippets Groups Projects
Commit 60c6b880 authored by Damien George's avatar Damien George
Browse files

esp32/machine_rtc: Move export declaration from .c to common .h file.

parent abec47a1
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment