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

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


The following commit(s) were added to refs/heads/master by this push:
     new 629d0fe356d arch/[risc-v|xtensa]: Re-add `RMT_LOOP_TEST_MODE` Kconfig 
entry
629d0fe356d is described below

commit 629d0fe356d0e336fa5b7b998e6846ac748f7e31
Author: Tiago Medicci Serrano <[email protected]>
AuthorDate: Mon Apr 20 18:03:25 2026 -0300

    arch/[risc-v|xtensa]: Re-add `RMT_LOOP_TEST_MODE` Kconfig entry
    
    The PR #18654 removed the Kconfig option `RMT_LOOP_TEST_MODE` used
    by Espressif's RMT peripheral. This commit reintroduces it as a
    lower-half driver interface used to enable internal loopback tests.
    
    Signed-off-by: Tiago Medicci Serrano <[email protected]>
---
 arch/risc-v/src/common/espressif/Kconfig | 9 +++++++++
 arch/xtensa/src/common/espressif/Kconfig | 9 +++++++++
 2 files changed, 18 insertions(+)

diff --git a/arch/risc-v/src/common/espressif/Kconfig 
b/arch/risc-v/src/common/espressif/Kconfig
index c883ef4a141..b6270a4102e 100644
--- a/arch/risc-v/src/common/espressif/Kconfig
+++ b/arch/risc-v/src/common/espressif/Kconfig
@@ -1662,6 +1662,15 @@ config ESP_RMT
                format, RMT can be extended to a versatile and general-purpose
                transceiver, transmitting or receiving many other types of 
signals.
 
+config RMT_LOOP_TEST_MODE
+       bool "Enable RMT loop test pin mapping"
+       default n
+       depends on ESP_RMT
+       ---help---
+               Use a loop test pin mapping for RMT RX/TX.
+               When enabled, board pin definitions can route RX/TX to the same
+               GPIO for loopback testing without external wiring.
+
 if ESP_RMT
 
 config RMT_DEFAULT_RX_BUFFER_SIZE
diff --git a/arch/xtensa/src/common/espressif/Kconfig 
b/arch/xtensa/src/common/espressif/Kconfig
index 3a9b16cd316..16acce2297b 100644
--- a/arch/xtensa/src/common/espressif/Kconfig
+++ b/arch/xtensa/src/common/espressif/Kconfig
@@ -77,6 +77,15 @@ config ESP_RMT
                format, RMT can be extended to a versatile and general-purpose
                transceiver, transmitting or receiving many other types of 
signals.
 
+config RMT_LOOP_TEST_MODE
+       bool "Enable RMT loop test pin mapping"
+       default n
+       depends on ESP_RMT
+       ---help---
+               Use a loop test pin mapping for RMT RX/TX.
+               When enabled, board pin definitions can route RX/TX to the same
+               GPIO for loopback testing without external wiring.
+
 if ESP_RMT
 
 config RMT_DEFAULT_RX_BUFFER_SIZE

Reply via email to