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

Alex Waterman awaterman at dawning.com
Fri Jul 1 14:37:11 CEST 2011


>    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?

Best regards,
Alex

-- 
Alex Waterman
Computer Engineer
Phone: 215-896-4920
Email: awaterman at dawning.com



More information about the U-Boot mailing list