Account for different Power Reduction Registers (PRR) on the

various chips.
This commit is contained in:
Markus Hitter 2010-07-12 21:49:27 +02:00
parent 6f0dced422
commit f249724efd
1 changed files with 6 additions and 0 deletions

View File

@ -21,7 +21,13 @@
void io_init(void) {
// disable modules we don't use
#ifdef PRR
PRR = MASK(PRTWI) | MASK(PRADC);
#endif
#ifdef PRR0
PRR0 = MASK(PRTWI) | MASK(PRADC);
PRR1 = 0xFF;
#endif
ACSR = MASK(ACD);
// setup I/O pins