Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
periph_conf.h
Go to the documentation of this file.
1
16
#ifndef PERIPH_CONF_H
17
#define PERIPH_CONF_H
18
19
#include "
macros/units.h
"
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
30
#ifndef CLOCK_CORECLOCK
31
#define CLOCK_CORECLOCK GHZ(1)
32
#endif
33
38
#define NATIVE_TIMER_MIN_RES 200
45
#define RANDOM_NUMOF (1U)
52
#define TIMER_NUMOF (1U)
53
#define TIMER_CHANNEL_NUMOF (1U)
58
/* timer_set_absolute() has a high margin for possible underflow if set with
59
* value not far in the future. To prevent this, we set high backoff values
60
* here.
61
*/
62
#define XTIMER_BACKOFF 200
63
#define XTIMER_ISR_BACKOFF 200
64
71
#ifndef UART_NUMOF
72
#define UART_NUMOF (1U)
73
#endif
79
#ifndef PWM_NUMOF
80
#define PWM_NUMOF (8U)
81
#endif
82
86
#ifndef QDEC_NUMOF
87
#define QDEC_NUMOF (8U)
88
#endif
89
94
#if !defined(SPI_NUMOF) || defined(DOXYGEN)
104
#define SPI_NUMOF (1U)
105
#endif
106
107
#if !defined(SPI_MAXCS) || defined(DOXYGEN)
114
#define SPI_MAXCS (4U)
115
#endif
116
125
#define SPI_HWCS(x) (UINT_MAX - SPI_MAXCS + x)
128
#ifdef __cplusplus
129
}
130
#endif
131
132
#endif
/* PERIPH_CONF_H */
units.h
Unit helper macros.
Generated on Mon Dec 23 2024 22:27:46 by
1.9.8