Blame view

RIOT/cpu/native/include/periph_conf.h 1.34 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
73
74
75
76
77
78
79
80
  /**
   * Native CPU peripheral configuration
   *
   * Copyright (C) 2014 Ludwig Knüpfer <ludwig.knuepfer@fu-berlin.de>
   *
   * 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 native_cpu
   * @{
   * @file
   * @author  Ludwig Knüpfer <ludwig.knuepfer@fu-berlin.de>
   */
  
  #ifndef PERIPH_CONF_H
  #define PERIPH_CONF_H
  
  #ifdef __cplusplus
   extern "C" {
  #endif
  
  /**
   * @name hardware timer clock skew avoidance
   * @{
   */
  #define NATIVE_TIMER_MIN_RES 200
  /** @} */
  
  /**
   * @name Random Number Generator configuration
   * @{
   */
  #define RANDOM_NUMOF        (1U)
  /** @} */
  
  /**
   * @name RealTime Clock configuration
   * @{
   */
  #define RTC_NUMOF (1)
  /** @} */
  
  /**
   * @name Timer peripheral configuration
   * @{
   */
  #define TIMER_NUMOF        (1U)
  #define TIMER_0_EN         1
  
  /**
   * @brief xtimer configuration
   * @{
   */
  #define XTIMER_OVERHEAD 14
  
  /* timer_set_absolute() has a high margin for possible underflow if set with
   * value not far in the future. To prevent this, we set high backoff values
   * here.
   */
  #define XTIMER_BACKOFF      200
  #define XTIMER_ISR_BACKOFF  200
  
  /** @} */
  
  /**
   * @brief UART configuration
   * @{
   */
  #ifndef UART_NUMOF
  #define UART_NUMOF (1U)
  #endif
  /** @} */
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif /* PERIPH_CONF_H */
  /** @} */