Account for different Power Reduction Registers (PRR) on the
various chips.
This commit is contained in:
parent
6f0dced422
commit
f249724efd
|
|
@ -21,7 +21,13 @@
|
||||||
|
|
||||||
void io_init(void) {
|
void io_init(void) {
|
||||||
// disable modules we don't use
|
// disable modules we don't use
|
||||||
|
#ifdef PRR
|
||||||
PRR = MASK(PRTWI) | MASK(PRADC);
|
PRR = MASK(PRTWI) | MASK(PRADC);
|
||||||
|
#endif
|
||||||
|
#ifdef PRR0
|
||||||
|
PRR0 = MASK(PRTWI) | MASK(PRADC);
|
||||||
|
PRR1 = 0xFF;
|
||||||
|
#endif
|
||||||
ACSR = MASK(ACD);
|
ACSR = MASK(ACD);
|
||||||
|
|
||||||
// setup I/O pins
|
// setup I/O pins
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue