Hello Eren.

Thanks for your support.
I cannot find a relation with values of IDX in the technical reference.
Also, looking at the use of the function esp_gpio_matrix_out in the idf,
the approach there is different.
Do you know how I can find the right IDX for LP_UART?

LP_UART is available in idf by config below:

{ // LP UART0
.pins = {
[SOC_UART_TX_PIN_IDX] = {
.default_gpio = LP_U0TXD_GPIO_NUM,
.iomux_func = LP_U0TXD_MUX_FUNC,
.input = 0,
.signal = UINT8_MAX, // Signal not available in signal map
},

[SOC_UART_RX_PIN_IDX] = {
.default_gpio = LP_U0RXD_GPIO_NUM,
.iomux_func = LP_U0RXD_MUX_FUNC,
.input = 1,
.signal = UINT8_MAX, // Signal not available in signal map
},

[SOC_UART_RTS_PIN_IDX] = {
.default_gpio = LP_U0RTS_GPIO_NUM,
.iomux_func = LP_U0RTS_MUX_FUNC,
.input = 0,
.signal = UINT8_MAX, // Signal not available in signal map
},

[SOC_UART_CTS_PIN_IDX] = {
.default_gpio = LP_U0CTS_GPIO_NUM,
.iomux_func = LP_U0CTS_MUX_FUNC,
.input = 1,
.signal = UINT8_MAX, // Signal not available in signal map
},
},
.irq = ETS_LP_UART_INTR_SOURCE,
},
};



Em qua., 15 de jan. de 2025 às 06:20, Eren Terzioğlu
<eren.terzio...@espressif.com.invalid> escreveu:

> Hi,
>
> U1TXD_OUT_IDX and similar idx variables represent signal indexes which are
> used to route related peripheral output to the gpio. After routing the
> correct signal to gpio pin, you can access the related peripheral from gpio
> pin.
>
> Best Regards
> ________________________________
> From: Felipe Moura Oliveira <moura....@gmail.com>
> Sent: Wednesday, January 15, 2025 3:55 AM
> To: dev@nuttx.apache.org <dev@nuttx.apache.org>
> Subject: Assistance Needed with Adding a Low Power UART on ESP32C6 Project
>
> [External: This email originated outside Espressif]
>
> *Dear All,*
>
> I hope this message finds you well.
>
> I am currently working on a project using the ESP32C6 and find myself in
> need of an additional UART, bringing the total to three UARTs. Initially, I
> considered implementing a UART using bit-banging; however, after reviewing
> the documentation, I discovered that a low power UART option is available,
> which seems to suit my requirements.
>
> At first glance, adding this UART does not appear to be overly complex.
> However, I am encountering an issue related to a missing configuration:
>
> The UART configurations on the ESP require two parameters that I am having
> difficulty understanding:
>
> .txsig = U1TXD_OUT_IDX,
> .rxsig = U1RXD_IN_IDX,
>
> Could someone please explain what these parameters represent?
>
> Upon examining the gpio_sigmap.h file that references the ESP32C6, I
> noticed that there isn't a similar parameter available for use with
> the low power UART. How should I proceed in this case?
>
> Any guidance or assistance you can provide would be greatly appreciated.
>
> Thank you in advance for your support.
>
> *Best regards,*
>
>
> --
> *Felipe Moura de Oliveira*
> *Universidade Federal de Minas Gerais*
> Linkedin <https://www.linkedin.com/in/felipe-oliveira-75a651a0>
> <https://twitter.com/FelipeMOliveir?lang=pt-br>
>


-- 
*Felipe Moura de Oliveira*
*Universidade Federal de Minas Gerais*
Linkedin <https://www.linkedin.com/in/felipe-oliveira-75a651a0>
<https://twitter.com/FelipeMOliveir?lang=pt-br>

Reply via email to