docs(rmt): add a note about binding channels to the same GPIO

Added a note about RX Channel and TX Channel initialization order when
bound RX and TX to the same gpio.

Closes https://github.com/espressif/esp-idf/issues/11768
This commit is contained in:
Chen Jichang
2023-06-30 16:54:25 +08:00
parent 40bf1ed65e
commit 7b6af86814
2 changed files with 8 additions and 0 deletions
@@ -141,6 +141,10 @@ RMT 接收器可以对输入信号采样,将其转换为 RMT 数据格式,
};
ESP_ERROR_CHECK(rmt_new_rx_channel(&rx_chan_config, &rx_chan));
.. note::
由于 GPIO 驱动程序中的软件限制,当 TX 和 RX 通道都绑定到同一 GPIO 时,请确保在 TX 通道之前初始化 RX 通道。如果先设置 TX 通道,那么在 RX 通道设置期间,GPIO 控制信号将覆盖先前的 RMT TX 通道信号。
卸载 RMT 通道
~~~~~~~~~~~~~~~~~~~~~