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 
46 /* timer_set_absolute() has a high margin for possible underflow if set with
47  * value not far in the future. To prevent this, we set high backoff values
48  * here.
49  */
50 #define XTIMER_BACKOFF 200
51 #define XTIMER_ISR_BACKOFF 200
52 
59 #ifndef UART_NUMOF
60 #define UART_NUMOF (1U)
61 #endif
62 
67 #ifndef PWM_NUMOF
68 #define PWM_NUMOF (8U)
69 #endif
70 
74 #ifndef QDEC_NUMOF
75 #define QDEC_NUMOF (8U)
76 #endif
77 
82 #if !defined(SPI_NUMOF) || defined(DOXYGEN)
83 
92 #define SPI_NUMOF (1U)
93 #endif
94 
95 #if !defined(SPI_MAXCS) || defined(DOXYGEN)
96 
102 #define SPI_MAXCS (4U)
103 #endif
104 
113 #define SPI_HWCS(x) (UINT_MAX - SPI_MAXCS + x)
114 
116 #ifdef __cplusplus
117 }
118 #endif
119 
120 #endif /* PERIPH_CONF_H */
121