Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Main Page
Related Pages
Supported Boards
Modules
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Enumerations
Data Structures
Data Structures
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
w
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerator
Related Symbols
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
p
q
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
►
RIOT OS
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
periph_conf.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2014 Ludwig Knüpfer <ludwig.knuepfer@fu-berlin.de>
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
19
#ifndef PERIPH_CONF_H
20
#define PERIPH_CONF_H
21
22
#include "
macros/units.h
"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
33
#if !defined(CLOCK_CORECLOCK) || defined(DOXYGEN)
34
# define CLOCK_CORECLOCK GHZ(1)
35
#endif
36
40
#define NATIVE_TIMER_MIN_RES 200
41
45
#define RANDOM_NUMOF (1U)
46
47
/* MARK: - Timer peripheral configuration */
52
#define TIMER_NUMOF (1U)
53
#define TIMER_CHANNEL_NUMOF (1U)
56
/* MARK: - xtimer configuration */
65
#define XTIMER_BACKOFF 200
66
#define XTIMER_ISR_BACKOFF 200
72
#if !defined(UART_NUMOF) || defined(DOXYGEN)
73
# define UART_NUMOF (1U)
74
#endif
75
79
#if !defined(PWM_NUMOF) || defined(DOXYGEN)
80
# define PWM_NUMOF (8U)
81
#endif
82
86
#if !defined(QDEC_NUMOF) || defined(DOXYGEN)
87
# define QDEC_NUMOF (8U)
88
#endif
89
90
/* MARK: - SPI configuration (Linux host only) */
95
#if !defined(SPI_NUMOF) || defined(DOXYGEN)
105
# define SPI_NUMOF (1U)
106
#endif
107
108
#if !defined(SPI_MAXCS) || defined(DOXYGEN)
115
# define SPI_MAXCS (4U)
116
#endif
117
126
#define SPI_HWCS(x) (UINT_MAX - SPI_MAXCS + x)
129
#ifdef __cplusplus
130
}
131
#endif
132
133
#endif
/* PERIPH_CONF_H */
units.h
Unit helper macros.
Generated on Thu Apr 10 2025 21:19:12 by
1.12.0