summaryrefslogtreecommitdiff
path: root/ports/esp32/modmachine.h
diff options
context:
space:
mode:
Diffstat (limited to 'ports/esp32/modmachine.h')
-rw-r--r--ports/esp32/modmachine.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ports/esp32/modmachine.h b/ports/esp32/modmachine.h
index 58229007d..c8513a471 100644
--- a/ports/esp32/modmachine.h
+++ b/ports/esp32/modmachine.h
@@ -3,6 +3,12 @@
#include "py/obj.h"
+typedef enum {
+ //MACHINE_WAKE_IDLE=0x01,
+ MACHINE_WAKE_SLEEP=0x02,
+ MACHINE_WAKE_DEEPSLEEP=0x04
+} wake_type_t;
+
extern const mp_obj_type_t machine_timer_type;
extern const mp_obj_type_t machine_wdt_type;
extern const mp_obj_type_t machine_pin_type;
@@ -12,6 +18,7 @@ extern const mp_obj_type_t machine_dac_type;
extern const mp_obj_type_t machine_pwm_type;
extern const mp_obj_type_t machine_hw_spi_type;
extern const mp_obj_type_t machine_uart_type;
+extern const mp_obj_type_t machine_rtc_type;
void machine_pins_init(void);
void machine_pins_deinit(void);