RTEMS | RISC-V: Add support for ESP32-C3 (!1160)

Kinsey Moore (@opticron) gitlab at rtems.org
Wed Apr 1 00:55:55 UTC 2026




Kinsey Moore commented on a discussion on bsps/riscv/esp32/console/console-config.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1160#note_147717

 > +#define READ_REG(base, reg) *(volatile uint32_t *)(base + reg)
 > +#define WRITE_REG(base, reg, value) *(volatile uint32_t *)(base + reg) = value
 > +
 > +static int esp_uart_poll_char(void)
 > +{
 > +#ifndef ESPRESSIF_USE_USB_CONSOLE
 > +  /* Use ROM functions to read from UART0 */
 > +  unsigned char char_in = 0;
 > +  unsigned char char_get_res = uart_rx_one_char(&char_in);
 > +
 > +  if (char_get_res == 0) {
 > +    return char_in;
 > +  }
 > +  return -1;
 > +#else
 > +  if ((USB_READ(USB_SERIAL_JTAG_EP1_CONF_REG) & USB_SERIAL_JTAG_SERIAL_OUT_EP_DATA_AVAIL) == 0) {

Done.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1160#note_147717
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260401/dcc98e37/attachment.htm>


More information about the bugs mailing list