diff options
author | Keith Packard <keithp@keithp.com> | 2011-10-23 14:51:32 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-10-23 14:51:32 -0700 |
commit | f70553106707e3496d07eecb83f0c0a1acad7f77 (patch) | |
tree | 23f9916f733d88cffbc2304ac9a517b1ea012044 /src/teleterra-v0.2/ao_pins.h | |
parent | 7e7a10c06a0486e9f869e361e46f2c98db9897b0 (diff) |
altos: Add battery voltage sampling driver
For devices without a full ADC compliment, this just samples the
battery pin and converts to mV.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/teleterra-v0.2/ao_pins.h')
-rw-r--r-- | src/teleterra-v0.2/ao_pins.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/teleterra-v0.2/ao_pins.h b/src/teleterra-v0.2/ao_pins.h index 7b6f08b2..36f3c199 100644 --- a/src/teleterra-v0.2/ao_pins.h +++ b/src/teleterra-v0.2/ao_pins.h @@ -57,6 +57,8 @@ #define HAS_P2_ISR 1 #define HAS_BUTTON_P0 1 #define HAS_BUTTON_P2 1 + + #define BATTERY_PIN 5 #endif #if DBG_ON_P1 |