periph_conf.h
Go to the documentation of this file.
1 
16 #ifndef PERIPH_CONF_H
17 #define PERIPH_CONF_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
27 #define NATIVE_TIMER_MIN_RES 200
28 
34 #define RANDOM_NUMOF (1U)
35 
41 #define TIMER_NUMOF (1U)
42 #define TIMER_0_EN 1
43 
47 #define XTIMER_OVERHEAD 14
48 
49 /* timer_set_absolute() has a high margin for possible underflow if set with
50  * value not far in the future. To prevent this, we set high backoff values
51  * here.
52  */
53 #define XTIMER_BACKOFF 200
54 #define XTIMER_ISR_BACKOFF 200
55 
62 #ifndef UART_NUMOF
63 #define UART_NUMOF (1U)
64 #endif
65 
70 #ifndef PWM_NUMOF
71 #define PWM_NUMOF (8U)
72 #endif
73 
77 #ifndef QDEC_NUMOF
78 #define QDEC_NUMOF (8U)
79 #endif
80 
85 #if !defined(SPI_NUMOF) || defined(DOXYGEN)
86 
95 #define SPI_NUMOF (1U)
96 #endif
97 
98 #if !defined(SPI_MAXCS) || defined(DOXYGEN)
99 
105 #define SPI_MAXCS (4U)
106 #endif
107 
116 #define SPI_HWCS(x) (x)
117 
119 #ifdef __cplusplus
120 }
121 #endif
122 
123 #endif /* PERIPH_CONF_H */
124