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

pull/3612/head
Damien George 2018-02-17 00:52:55 +11:00
rodzic abec47a1cd
commit 60c6b880fa
4 zmienionych plików z 2 dodań i 6 usunięć

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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