Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
micropython/ports/esp32/modmachine.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
25 lines (20 sloc)
680 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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(); | |
#endif // MICROPY_INCLUDED_ESP32_MODMACHINE_H |