aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/wiring.c
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2007-12-14 04:21:59 +0000
committerDavid A. Mellis <d.mellis@arduino.cc>2007-12-14 04:21:59 +0000
commit92ba50c7b226c951ba440badf638801f12f3a9ff (patch)
treeca555729c7eafb672c0fde62b76d852daebb93f6 /cores/arduino/wiring.c
parent0292fe91fc2de0e5c5b374a6d0e0c3879fe49387 (diff)
Adding analogReference() function - needs testing on an ATmega8 (but works on the ATmega 168).
Diffstat (limited to 'cores/arduino/wiring.c')
-rwxr-xr-xcores/arduino/wiring.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/cores/arduino/wiring.c b/cores/arduino/wiring.c
index 5dda822..ae8fcdd 100755
--- a/cores/arduino/wiring.c
+++ b/cores/arduino/wiring.c
@@ -170,10 +170,6 @@ void init()
sbi(TCCR2, WGM20);
#endif
- // set a2d reference to AVCC (5 volts)
- cbi(ADMUX, REFS1);
- sbi(ADMUX, REFS0);
-
// set a2d prescale factor to 128
// 16 MHz / 128 = 125 KHz, inside the desired 50-200 KHz range.
// XXX: this will not work properly for other clock speeds, and