Blame view

RIOT/cpu/lpc2387/include/lpc2387-adc.h 1 KB
fb11e647   vrobic   reseau statique a...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
  /*
   * 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.
   */
  
  #ifndef LPC2387ADC_H_
  #define LPC2387ADC_H_
  
  /**
   * @defgroup    lpc2387_adc     LPC2387 ADC
   * @ingroup     lpc2387
   *
   * @{
   */
  
  /**
   * @file
   * @brief       LPC2387 ADC
   *
   * @author      Thomas Hillebrandt <hillebra@inf.fu-berlin.de>
   * @version     $Revision: 3249 $
   *
   * @note        $Id: lpc2387-adc.h 3249 2011-03-11 09:44:46Z schmittb $
   */
  
  #include <stdint.h>
  #include "adc_legacy.h"
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  #define ADC_NUM                  (6)
  #define ADC_OFFSET            (0x10)
  #define ADC_INDEX                (4)
  
  #define ADC_DONE        (0x80000000)
  #define ADC_OVERRUN     (0x40000000)
  
  /**
   * @brief   Initialize ADC.
   */
  void adc_init_1(void);
  void adc_init_2(void);
  
  #ifdef __cplusplus
  }
  #endif
  
  /** @} */
  #endif /* LPC2387ADC_H_ */