/* This file is part of the TinyUSB stack.  */
size_t get_console_inputs(uint8_t *buf, size_t bufsize)
/* This file is part of the TinyUSB stack.  */
size_t get_console_inputs(uint8_t *buf, size_t bufsize)
{
  size_t count = 0;
  while (count < bufsize)
  {
    int ch = board_getchar();
    if ( ch <= 0 ) break;
    buf[count] = (uint8_t) ch;
    count++;
  }
  return count;
}