summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-01-12 19:12:31 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-01-12 19:12:31 +0100
commit83cec4457bf4a9b477187bd619e6d16b3906bf67 (patch)
tree4d81b388a5e3bddc2221df44b645ec01c14dd904
parentfb41c6061f5661e1148f9038a8789bdb158aa5aa (diff)
Disable ADC via PRR
-rw-r--r--main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/main.c b/main.c
index bf50ec3..6bfabe1 100644
--- a/main.c
+++ b/main.c
@@ -1,6 +1,5 @@
#include <avr/io.h>
#include <avr/interrupt.h>
-#include <avr/power.h>
#include <avr/wdt.h>
#include <util/delay.h>
#include <stdlib.h>
@@ -14,7 +13,7 @@ int main (void)
uint16_t want_shutdown = 0;
// disable ADC to save power
- power_adc_disable();
+ PRR |= _BV(PRADC);
// dito
wdt_disable();