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

This commit is contained in:
Damien George 2018-02-17 00:52:55 +11:00
parent abec47a1cd
commit 60c6b880fa
4 changed files with 2 additions and 6 deletions

View File

@ -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;

View File

@ -39,4 +39,6 @@ typedef struct {
bool ext1_level : 1;
} machine_rtc_config_t;
extern machine_rtc_config_t machine_rtc_config;
#endif

View File

@ -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) {

View File

@ -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,