Open GoogleCodeExporter opened 9 years ago
Things like this:
- sbi(ADCSRA, ADPS2);
- sbi(ADCSRA, ADPS1);
- sbi(ADCSRA, ADPS0);
Could be made like this:
ADCSRA |= ((1<<ADPS2)|(1<<ADPS1)|(1<<ADPS0));
The compiler will handle all this and there will only be made one load to the
ADCSRA register containing all the desired bits set.
Original comment by x86....@gmail.com
on 20 Oct 2010 at 1:36
Original comment by dmel...@gmail.com
on 20 Oct 2010 at 1:39
Original issue reported on code.google.com by
wes...@gmail.com
on 3 Oct 2010 at 5:59Attachments: