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
/*
2
* SPDX-FileCopyrightText: 2023 Gunar Schorcht
3
* SPDX-FileCopyrightText: 2026 Technische Universität Hamburg
4
* SPDX-License-Identifier: LGPL-2.1-only
5
*/
6
7
#pragma once
8
20
21
#include <stdint.h>
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
37
#ifndef ADC_GPIOS
38
# define ADC_GPIOS { GPIO1 }
39
#endif
41
55
#ifndef SPI0_CTRL
56
# define SPI0_CTRL SPI2_HOST
57
#endif
58
#ifndef SPI0_SCK
59
# define SPI0_SCK GPIO10
60
#endif
61
#ifndef SPI0_MOSI
62
# define SPI0_MOSI GPIO11
63
#endif
64
#ifndef SPI0_MISO
65
# define SPI0_MISO GPIO12
66
#endif
67
#ifndef SPI0_CS0
68
# define SPI0_CS0 GPIO9
69
#endif
71
83
#ifndef I2C0_SPEED
84
# define I2C0_SPEED I2C_SPEED_FAST
85
#endif
86
#ifndef I2C0_SCL
87
# define I2C0_SCL GPIO7
88
#endif
89
#ifndef I2C0_SDA
90
# define I2C0_SDA GPIO6
91
#endif
93
104
#define UART0_TXD GPIO43
105
#define UART0_RXD GPIO44
107
108
#ifdef __cplusplus
109
}
110
#endif
111
112
/* include common peripheral definitions as last step */
113
#include "periph_conf_common.h"
114
Generated on Tue Jun 23 2026 15:19:59 by
1.13.2