/* Writes a number of bytes, at most 
If  */
size_t __write(int handle, const uint8_t *buffer, size_t size)
/* Writes a number of bytes, at most 
If  */
size_t __write(int handle, const uint8_t *buffer, size_t size)
{
  size_t nChars = 0;
  if (buffer == 0)
  {
    return 0;
  }
  if (handle != _LLIO_STDOUT && handle != _LLIO_STDERR)
  {
    return _LLIO_ERROR;
  }
  for (; size != 0; --size)
  {
    if (usart_putchar(stdio_usart_base, *buffer++) < 0)
    {
      return _LLIO_ERROR;
    }
    ++nChars;
  }
  return nChars;
}