modmachine.h 803 B

1234567891011121314151617181920212223242526
  1. #ifndef MICROPY_INCLUDED_ESP32_MODMACHINE_H
  2. #define MICROPY_INCLUDED_ESP32_MODMACHINE_H
  3. #include "py/obj.h"
  4. typedef enum {
  5. //MACHINE_WAKE_IDLE=0x01,
  6. MACHINE_WAKE_SLEEP=0x02,
  7. MACHINE_WAKE_DEEPSLEEP=0x04
  8. } wake_type_t;
  9. extern const mp_obj_type_t machine_timer_type;
  10. extern const mp_obj_type_t machine_wdt_type;
  11. extern const mp_obj_type_t machine_pin_type;
  12. extern const mp_obj_type_t machine_touchpad_type;
  13. extern const mp_obj_type_t machine_adc_type;
  14. extern const mp_obj_type_t machine_dac_type;
  15. extern const mp_obj_type_t machine_pwm_type;
  16. extern const mp_obj_type_t machine_hw_spi_type;
  17. extern const mp_obj_type_t machine_uart_type;
  18. extern const mp_obj_type_t machine_rtc_type;
  19. void machine_pins_init(void);
  20. void machine_pins_deinit(void);
  21. #endif // MICROPY_INCLUDED_ESP32_MODMACHINE_H