diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2020-08-21 11:13:53 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2020-08-21 11:13:53 -0700 |
| commit | a5b01f73612f23407d059879664834b40441f34e (patch) | |
| tree | fbb1bde1cb5967de27a7bcecb755b1b19f5f36fd /ports/esp32s2/supervisor | |
| parent | 6857f984269149b46d1cd4283506420f341b2601 (diff) | |
| parent | 988e5caafc0866de6593d99632622a8fe62a9a9c (diff) | |
Merge remote-tracking branch 'adafruit/main' into add_pwmio
Diffstat (limited to 'ports/esp32s2/supervisor')
| -rw-r--r-- | ports/esp32s2/supervisor/port.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ports/esp32s2/supervisor/port.c b/ports/esp32s2/supervisor/port.c index 2f430c7e3..03caed92e 100644 --- a/ports/esp32s2/supervisor/port.c +++ b/ports/esp32s2/supervisor/port.c @@ -38,10 +38,13 @@ #include "common-hal/busio/I2C.h" #include "common-hal/busio/SPI.h" #include "common-hal/busio/UART.h" +#include "common-hal/pulseio/PulseIn.h" #include "common-hal/pwmio/PWMOut.h" #include "supervisor/memory.h" #include "supervisor/shared/tick.h" +#include "rmt.h" + STATIC esp_timer_handle_t _tick_timer; void tick_timer_cb(void* arg) { @@ -65,9 +68,15 @@ void reset_port(void) { // A larger delay so the idle task can run and do any IDF cleanup needed. vTaskDelay(4); +#if CIRCUITPY_PULSEIO + esp32s2_peripherals_rmt_reset(); + pulsein_reset(); +#endif + #if CIRCUITPY_PWMIO pwmout_reset(); #endif + #if CIRCUITPY_BUSIO i2c_reset(); spi_reset(); |
