feat(rmt): support sleep retention

by back up the registers
This commit is contained in:
morris
2024-04-24 22:10:42 +08:00
parent 6a919dcc16
commit e8e975112a
34 changed files with 390 additions and 37 deletions
+1 -1
View File
@@ -417,7 +417,7 @@ static esp_err_t rmt_simple_encoder_reset(rmt_encoder_t *encoder)
static esp_err_t rmt_del_simple_encoder(rmt_encoder_t *encoder)
{
rmt_simple_encoder_t *simple_encoder = __containerof(encoder, rmt_simple_encoder_t, base);
if (simple_encoder) {
if (simple_encoder->ovf_buf) {
free(simple_encoder->ovf_buf);
}
free(simple_encoder);