int com_getchar (void) {
/* Read a byte from serial interface */
struct buf_st *p = &rbuf;
if (p->in == p->out) {
/* Serial receive buffer is empty. */
return (-1);
}
return (p->buf[p->out++]);
}
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.