/* Core UART functions to implement for a port  */
uintptr_t mp_hal_stdio_poll(uintptr_t poll_flags)
/* Core UART functions to implement for a port  */
uintptr_t mp_hal_stdio_poll(uintptr_t poll_flags)
{
    uintptr_t ret = 0;
    if ((poll_flags & MP_STREAM_POLL_RD) && stdin_ringbuf.iget != stdin_ringbuf.iput) {
        ret |= MP_STREAM_POLL_RD;
    }
    return ret;
}