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-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
30
31
#include <stdint.h>
32
33
#ifdef __cplusplus
34
extern
"C"
{
35
#endif
36
48
#ifndef I2C0_SPEED
49
#define I2C0_SPEED I2C_SPEED_FAST
50
#endif
51
#ifndef I2C0_SCL
52
#define I2C0_SCL GPIO40
53
#endif
54
#ifndef I2C0_SDA
55
#define I2C0_SDA GPIO41
56
#endif
58
72
#ifndef SPI0_CTRL
73
#define SPI0_CTRL SPI2_HOST
74
#endif
75
#ifndef SPI0_SCK
76
#define SPI0_SCK GPIO12
77
#endif
78
#ifndef SPI0_MISO
79
#define SPI0_MISO GPIO13
80
#endif
81
#ifndef SPI0_MOSI
82
#define SPI0_MOSI GPIO11
83
#endif
84
#ifndef SPI0_CS0
85
#define SPI0_CS0 GPIO10
86
#endif
87
88
#ifndef SPI1_CTRL
89
#define SPI1_CTRL SPI3_HOST
90
#endif
91
#ifndef SPI1_SCK
92
#define SPI1_SCK GPIO7
93
#endif
94
#ifndef SPI1_MISO
95
#define SPI1_MISO GPIO35
96
#endif
97
#ifndef SPI1_MOSI
98
#define SPI1_MOSI GPIO6
99
#endif
100
#ifndef SPI1_CS0
101
#define SPI1_CS0 GPIO5
102
#endif
104
112
#define UART0_TXD GPIO43
113
#define UART0_RXD GPIO44
114
116
117
#ifdef __cplusplus
118
}
/* end extern "C" */
119
#endif
120
121
/* include common peripheral definitions as last step */
122
#include "periph_conf_common.h"
123
Generated on Fri Sep 5 2025 18:12:10 by
1.13.2