2018-02-15 10:59:28 -05:00
|
|
|
#ifndef MICROPY_INCLUDED_ESP32_MODESP32_H
|
|
|
|
#define MICROPY_INCLUDED_ESP32_MODESP32_H
|
|
|
|
|
2022-04-13 13:34:09 -04:00
|
|
|
#if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
|
|
|
|
|
|
|
|
#define RTC_VALID_EXT_PINS \
|
|
|
|
( \
|
|
|
|
(1ll << 0) | \
|
|
|
|
(1ll << 1) | \
|
|
|
|
(1ll << 2) | \
|
|
|
|
(1ll << 3) | \
|
|
|
|
(1ll << 4) | \
|
|
|
|
(1ll << 5) | \
|
|
|
|
(1ll << 6) | \
|
|
|
|
(1ll << 7) | \
|
|
|
|
(1ll << 8) | \
|
|
|
|
(1ll << 9) | \
|
|
|
|
(1ll << 10) | \
|
|
|
|
(1ll << 11) | \
|
|
|
|
(1ll << 12) | \
|
|
|
|
(1ll << 13) | \
|
|
|
|
(1ll << 14) | \
|
|
|
|
(1ll << 15) | \
|
|
|
|
(1ll << 16) | \
|
|
|
|
(1ll << 17) | \
|
|
|
|
(1ll << 18) | \
|
|
|
|
(1ll << 19) | \
|
|
|
|
(1ll << 20) | \
|
|
|
|
(1ll << 21) \
|
|
|
|
)
|
|
|
|
#define RTC_LAST_EXT_PIN 21
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define RTC_VALID_EXT_PINS \
|
2020-02-26 23:36:53 -05:00
|
|
|
( \
|
|
|
|
(1ll << 0) | \
|
|
|
|
(1ll << 2) | \
|
|
|
|
(1ll << 4) | \
|
2018-02-15 10:59:28 -05:00
|
|
|
(1ll << 12) | \
|
|
|
|
(1ll << 13) | \
|
|
|
|
(1ll << 14) | \
|
|
|
|
(1ll << 15) | \
|
|
|
|
(1ll << 25) | \
|
|
|
|
(1ll << 26) | \
|
|
|
|
(1ll << 27) | \
|
|
|
|
(1ll << 32) | \
|
|
|
|
(1ll << 33) | \
|
|
|
|
(1ll << 34) | \
|
|
|
|
(1ll << 35) | \
|
|
|
|
(1ll << 36) | \
|
|
|
|
(1ll << 37) | \
|
|
|
|
(1ll << 38) | \
|
|
|
|
(1ll << 39) \
|
2020-02-26 23:36:53 -05:00
|
|
|
)
|
2022-04-13 13:34:09 -04:00
|
|
|
#define RTC_LAST_EXT_PIN 39
|
|
|
|
|
|
|
|
#endif
|
2018-02-15 10:59:28 -05:00
|
|
|
|
|
|
|
#define RTC_IS_VALID_EXT_PIN(pin_id) ((1ll << (pin_id)) & RTC_VALID_EXT_PINS)
|
|
|
|
|
2022-01-11 01:21:14 -05:00
|
|
|
extern int8_t esp32_rmt_bitstream_channel_id;
|
|
|
|
|
2021-01-18 04:06:12 -05:00
|
|
|
extern const mp_obj_type_t esp32_nvs_type;
|
2019-07-09 01:08:52 -04:00
|
|
|
extern const mp_obj_type_t esp32_partition_type;
|
2019-09-22 23:50:58 -04:00
|
|
|
extern const mp_obj_type_t esp32_rmt_type;
|
2017-11-20 11:03:38 -05:00
|
|
|
extern const mp_obj_type_t esp32_ulp_type;
|
|
|
|
|
2022-01-12 23:16:16 -05:00
|
|
|
esp_err_t rmt_driver_install_core1(uint8_t channel_id);
|
|
|
|
|
2018-02-15 10:59:28 -05:00
|
|
|
#endif // MICROPY_INCLUDED_ESP32_MODESP32_H
|