I'd reached the stage in my project where I couldn't go much further without being able to read from the serial input. Re-reading this forum and reading the comment from @martinayotte, I went back to the <rom/uart.h> and re-read. I decided to test a call to it in a loop just to see what happened. To my delight, it seems to "mechanically work".
Calling:
Code: Select all
while(1) {
uint8_t myChar;
STATUS s = uart_rx_one_char(&myChar);
if (s == OK) {
printf("%c\n", myChar);
}
}
works just as I hoped it would. It also doesn't seem to block ... and returns FAIL if there is no character available. While I am cognizant of @ESP_Sprite's caution in that it is "polling" the serial input ... as opposed to being interrupt driven ... it still is enough to allow me to make functional progress at this time.