[En-Nut-Discussion] UART 0 + 1

Harald Kipp harald.kipp at egnite.de
Tue Feb 27 16:00:45 CET 2007


Hermann,

What's the type of len?

Hermann Schulz schrieb:
> Hello group,
>
> I use Ethernut 2.1 Version 4.2.1 and the AVR Icc V7 Compiler.
> Compiler Switch: ETHERNUT2 __MCU_enhanced __HARVARD_ARCH__
> CPU AT Mega 128
>
>   len = _read(_fileno(uart), inbuf, sizeof(inbuf));
>   if(len)
>     _write(_fileno(uart), inbuf, len);
>
> When I go to this routine first, it works correctly.
> But all next steps I get in the len the value of sizeof(inbuf) (128 Bytes).
>
>   




More information about the En-Nut-Discussion mailing list