summaryrefslogtreecommitdiff
path: root/src/common/power.c
diff options
context:
space:
mode:
authorNicolas Schodet2011-09-27 21:04:35 +0200
committerNicolas Schodet2011-09-27 21:31:05 +0200
commitc4cb248eead0c403442cc018f2ebe3123fb2d395 (patch)
treed3bb7e25801761dd828daab594d7c27343f66cae /src/common/power.c
parent062258441f674e3c77605a479e35d38646076788 (diff)
src/common: use system clock prescaler to save power
Diffstat (limited to 'src/common/power.c')
-rw-r--r--src/common/power.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/power.c b/src/common/power.c
index c7a5aab..3ca0d1c 100644
--- a/src/common/power.c
+++ b/src/common/power.c
@@ -30,6 +30,8 @@
void
power_init (void)
{
+ /* Change initial clock. */
+ power_clock_prescale_set (AC_POWER_CLKPS_INITIAL);
/* Shutdown unused peripherals. */
/* Analog comparator. */
ACSR = _BV (ACD);