[U-Boot] [PATCH 6/8] Adds wait to atmel_usart serial_init function

Albert ARIBAUD albert.u.boot at aribaud.net
Fri Jul 1 17:17:16 CEST 2011


Hi Alex,

Le 01/07/2011 14:37, Alex Waterman a écrit :
>
>>     Why 'volatile'? Also, there shouldn't be an empty line before it but there should be one after it...
> I used a volatile to prevent the compiler from optimizing out the (normally) useless loop. Is there a cleaner way to do this?

If the board supports udelay(), you should use that instead of a loop.

> Best regards,
> Alex

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list