mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 09:00:23 +08:00
03eae48847
This is a code factoring to have the Python bindings in one location, and all the ports use those same bindings. At this stage only esp32 implements this class, so the code for the bindings comes from that port. The documentation is also updated to reflect the esp32's behaviour of ADCBlock.connect(). Signed-off-by: Damien George <damien@micropython.org>
27 lines
755 B
C
27 lines
755 B
C
#ifndef MICROPY_INCLUDED_ESP32_MODMACHINE_H
|
|
#define MICROPY_INCLUDED_ESP32_MODMACHINE_H
|
|
|
|
#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_touchpad_type;
|
|
extern const mp_obj_type_t machine_dac_type;
|
|
extern const mp_obj_type_t machine_sdcard_type;
|
|
|
|
void machine_init(void);
|
|
void machine_deinit(void);
|
|
void machine_pins_init(void);
|
|
void machine_pins_deinit(void);
|
|
void machine_pwm_deinit_all(void);
|
|
// TODO: void machine_rmt_deinit_all(void);
|
|
void machine_timer_deinit_all(void);
|
|
void machine_i2s_init0();
|
|
NORETURN mp_obj_t machine_bootloader(size_t n_args, const mp_obj_t *args);
|
|
|
|
#endif // MICROPY_INCLUDED_ESP32_MODMACHINE_H
|