You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/09/12 09:44:53 UTC

[nuttx] 04/04: esp32/rmt: fix bug in rmt_reset

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 98b43752d5f9112cd728d1350f54f74141b58a31
Author: Tomáš Pilný <to...@espressif.com>
AuthorDate: Thu Sep 7 17:45:40 2023 +0200

    esp32/rmt: fix bug in rmt_reset
---
 arch/xtensa/src/esp32/esp32_rmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/xtensa/src/esp32/esp32_rmt.c b/arch/xtensa/src/esp32/esp32_rmt.c
index 84af7f191f..71d9489691 100644
--- a/arch/xtensa/src/esp32/esp32_rmt.c
+++ b/arch/xtensa/src/esp32/esp32_rmt.c
@@ -107,7 +107,7 @@ static void rmt_reset(struct rmt_dev_s *dev)
 
   flags = spin_lock_irqsave(&dev->lock);
 
-  modifyreg32(DPORT_PERIP_RST_EN_REG, DPORT_RMT_RST, 1);
+  modifyreg32(DPORT_PERIP_RST_EN_REG, 0, DPORT_RMT_RST);
   modifyreg32(DPORT_PERIP_RST_EN_REG, DPORT_RMT_RST, 0);
 
   /* Clear any spurious IRQ Flag   */