diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-01-12 19:12:31 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-01-12 19:12:31 +0100 |
commit | 83cec4457bf4a9b477187bd619e6d16b3906bf67 (patch) | |
tree | 4d81b388a5e3bddc2221df44b645ec01c14dd904 | |
parent | fb41c6061f5661e1148f9038a8789bdb158aa5aa (diff) |
Disable ADC via PRR
-rw-r--r-- | main.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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(); |