Blame view

RIOT/cpu/lpc11u34/include/periph_cpu.h 1.56 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
  /*
   * Copyright (C) 2015-2016 Freie Universitรคt Berlin
   *
   * 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.
   */
  
  /**
   * @ingroup         cpu_lpc11u34
   * @{
   *
   * @file
   * @brief           CPU specific definitions for internal peripheral handling
   *
   * @author          Paul RATHGEB <paul.rathgeb@skynet.be>
   * @author          Hauke Petersen<hauke.petersen@fu-berlin.de>
   */
  
  #ifndef PERIPH_CPU_H_
  #define PERIPH_CPU_H_
  
  #include "periph/dev_enums.h"
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  /**
   * @brief declare needed generic SPI functions
   * @{
   */
  #define PERIPH_SPI_NEEDS_TRANSFER_BYTES
  #define PERIPH_SPI_NEEDS_TRANSFER_REG
  #define PERIPH_SPI_NEEDS_TRANSFER_REGS
  /** @} */
  
  /**
   * @brief   Length of the CPU_ID in octets
   */
  #define CPUID_LEN           (16U)
  
  /**
   * @brief   Define number of available ADC lines
   *
   * TODO: check this value
   */
  #define ADC_NUMOF           (10U)
  
  #ifndef DOXYGEN
  /**
   * @brief   Override the ADC resolution settings
   * @{
   */
  #define HAVE_ADC_RES_T
  typedef enum {
      ADC_RES_6BIT = 0,       /**< ADC resolution: 6 bit */
      ADC_RES_8BIT,           /**< ADC resolution: 8 bit */
      ADC_RES_10BIT,          /**< ADC resolution: 10 bit */
      ADC_RES_12BIT,          /**< ADC resolution: 12 bit */
      ADC_RES_14BIT,          /**< ADC resolution: 14 bit */
      ADC_RES_16BIT,          /**< ADC resolution: 16 bit */
  } adc_res_t;
  /** @} */
  #endif /* ndef DOXYGEN */
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif /* PERIPH_CPU_H_ */
  /** @} */