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

Gedare Bloom (@gedare) gitlab at rtems.org
Tue Mar 31 16:18:16 UTC 2026




Gedare Bloom started a new discussion on bsps/riscv/esp32/console/console-config.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1160#note_147625

 > +#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) {

line lengths

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1160#note_147625
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/20260331/54d6c8d3/attachment.htm>


More information about the bugs mailing list