summaryrefslogtreecommitdiff
path: root/include/adc.h
diff options
context:
space:
mode:
authorNick Sanders <nsanders@chromium.org>2016-04-26 19:00:17 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-05-26 16:17:26 -0700
commit5cc3cac589d3e869266c18ed7e538a769496478f (patch)
treea95d179a6dbde223775a2a39c1482589c8b751a7 /include/adc.h
parent4fa3b1e80c0ec46710e701da636da23ac1edefce (diff)
downloadchrome-ec-5cc3cac589d3e869266c18ed7e538a769496478f.tar.gz
servo_v4: Fix ADC console command
The console adc command prints adc values in the order they appear in hardware, however they are lableled in the order they are enumerated in board.h, which is not necessarily the same. This prints the correct name and value pairs, and removes the adc_read_all_channels function which is not otherwise used. BUG=chromium:571476 BRANCH=None TEST="adc" command associates correct values with names now. Change-Id: I688641953d20082224b4120eaefe0d634ad4c74c Signed-off-by: Nick Sanders <nsanders@google.com> Reviewed-on: https://chromium-review.googlesource.com/340892 Commit-Ready: Nick Sanders <nsanders@chromium.org> Tested-by: Nick Sanders <nsanders@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'include/adc.h')
-rw-r--r--include/adc.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/adc.h b/include/adc.h
index a42fc376ee..7b1dd843ba 100644
--- a/include/adc.h
+++ b/include/adc.h
@@ -30,18 +30,6 @@
int adc_read_channel(enum adc_channel ch);
/**
- * Read all ADC channels.
- *
- * @param data Destination array for channel data; must be
- * ADC_CH_COUNT elements long for single-read profile,
- * or sized according to dma_buffer_size in
- * continuous profiles.
- *
- * @return EC_SUCCESS, or non-zero on error.
- */
-int adc_read_all_channels(int *data);
-
-/**
* Enable ADC watchdog. Note that interrupts might come in repeatedly very
* quickly when ADC output goes out of the accepted range.
*