Files
OpenCellular/include/adc.h
Randall Spangler e68844824b Clean up chip/board configs for LM4
Board-specific features like lightbar should be config'd at the board
level, not at the chip level.

BUG=none
TEST=build link, bds, daisy

Change-Id: If1df2ca0422f7b8bdc172d0df7bd9f6a1af6a9d2
Signed-off-by: Randall Spangler <rspangler@chromium.org>
2012-03-16 14:02:59 -07:00

36 lines
665 B
C

/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* ADC interface for Chrome EC */
#ifndef __CROS_EC_ADC_H
#define __CROS_EC_ADC_H
#include "common.h"
#include "board.h"
/* forward declaration */
enum adc_channel;
/* Data structure to define ADC channels. */
struct adc_t
{
const char* name;
int sequencer;
int factor_mul;
int factor_div;
int shift;
int channel;
int flag;
};
/* Initializes the module. */
int adc_init(void);
/* Read ADC channel. */
int adc_read_channel(enum adc_channel ch);
#endif /* __CROS_EC_ADC_H */