[En-Nut-Discussion] Bugs in Uart.c

Moritz Struebe morty at gmx.net
Wed Mar 26 09:43:51 CET 2008


Nathan Moore schrieb:
>> ters and performance.
>>     
>
> I agree that the types are often bigger than needed.  NutEventWait uses an
> extra byte; the biggest impact of this is that it would cause every caller
> who checks the result to have an extra instruction to check each byte on an
> AVR.  It should return some sort of archetectually specific boolean type,
> which would be a char (or unsigned char) for AVR or an int for other
> architectures.
>
>   
Just found: int_fast8_t. That's probaly what we are looking for, is it?

Cheers
Morty




More information about the En-Nut-Discussion mailing list