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.
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
