2014-08-27 18:47:31 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2008, Freie Universitaet Berlin (FUB). All rights reserved.
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
2012-02-16 22:14:47 +01:00
|
|
|
|
|
|
|
#ifndef LPC2387ADC_H_
|
|
|
|
#define LPC2387ADC_H_
|
|
|
|
|
|
|
|
/**
|
2014-07-31 20:46:28 +02:00
|
|
|
* @defgroup lpc2387_adc LPC2387 ADC
|
|
|
|
* @ingroup lpc2387
|
2012-02-16 22:14:47 +01:00
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
2014-07-31 20:46:28 +02:00
|
|
|
* @brief LPC2387 ADC
|
2012-02-16 22:14:47 +01:00
|
|
|
*
|
2014-07-31 20:46:28 +02:00
|
|
|
* @author Thomas Hillebrandt <hillebra@inf.fu-berlin.de>
|
2012-02-16 22:14:47 +01:00
|
|
|
* @version $Revision: 3249 $
|
|
|
|
*
|
2014-07-31 20:46:28 +02:00
|
|
|
* @note $Id: lpc2387-adc.h 3249 2011-03-11 09:44:46Z schmittb $
|
2012-02-16 22:14:47 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdint.h>
|
2014-10-25 17:09:22 +02:00
|
|
|
#include "adc_legacy.h"
|
2012-02-16 22:14:47 +01:00
|
|
|
|
2014-07-31 20:46:28 +02:00
|
|
|
#define ADC_NUM (6)
|
|
|
|
#define ADC_OFFSET (0x10)
|
|
|
|
#define ADC_INDEX (4)
|
2012-02-16 22:14:47 +01:00
|
|
|
|
2014-07-31 20:46:28 +02:00
|
|
|
#define ADC_DONE (0x80000000)
|
|
|
|
#define ADC_OVERRUN (0x40000000)
|
2012-02-16 22:14:47 +01:00
|
|
|
|
|
|
|
/**
|
2014-07-31 20:46:28 +02:00
|
|
|
* @brief Initialize ADC.
|
2012-02-16 22:14:47 +01:00
|
|
|
*/
|
|
|
|
void adc_init_1(void);
|
|
|
|
void adc_init_2(void);
|
|
|
|
|
|
|
|
/** @} */
|
|
|
|
#endif /* LPC2387ADC_H_ */
|