As I wanted a mean to drive a program with a simple char key pressed, and after searching the web, I found the uart_rx_one_char and uart_rx_one_char_block functions.
In order to wait a char, I can use each of these functions in a task and they work like a charm when I use
Code: Select all
idf.py flash monitor
But if I use an external monitor, like minicom, I get no result, that is my first question : why ? Which is the channel on which these functions are waiting and is it possible to change it ?
Then I dig the web and search info on these functions, but I get very little. So the following questions.
- I read that they are "rom function" and I saw in the esp-ide components lot of "rom" folder. Among these, I found the "esp32/rom/uart.h" file that contains the prototypes. I also see an address provided by a .ld file. But what is here the meaning of "rom" : are these functions in a ROM of the chip?
- I also found that I can use such a function without any UART initialization ; so are they totally independent of the UARTs?
Thanks in advance for any answer or any useful link.
Best regards