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
* Copyright (C) 2023 Gunar Schorcht
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
39
#ifndef PERIPH_CONF_H
40
#define PERIPH_CONF_H
41
42
#include <stdint.h>
43
44
#ifdef __cplusplus
45
extern
"C"
{
46
#endif
47
62
#ifndef ADC_GPIOS
63
#define ADC_GPIOS { GPIO0, GPIO1, GPIO2, GPIO3, GPIO4, GPIO5 }
64
#endif
78
#ifndef I2C0_SPEED
79
#define I2C0_SPEED I2C_SPEED_FAST
80
#endif
81
#ifndef I2C0_SCL
82
#define I2C0_SCL GPIO10
83
#endif
84
#ifndef I2C0_SDA
85
#define I2C0_SDA GPIO8
86
#endif
107
#ifndef PWM0_GPIOS
108
#ifdef MODULE_ESP32C3_WEMOS_MINI_V1_0_0
109
#define PWM0_GPIOS { GPIO1, GPIO6, GPIO7 }
110
#else
/* MODULE_ESP32C3_WEMOS_MINI_V2_1_0 */
111
#define PWM0_GPIOS { GPIO2, GPIO6 }
112
#endif
113
#endif
114
134
#ifdef MODULE_ESP32C3_WEMOS_MINI_V1_0_0
135
#ifndef SPI0_CTRL
136
#define SPI0_CTRL FSPI
137
#endif
138
#ifndef SPI0_SCK
139
#define SPI0_SCK GPIO2
140
#endif
141
#ifndef SPI0_MISO
142
#define SPI0_MISO GPIO3
143
#endif
144
#ifndef SPI0_MOSI
145
#define SPI0_MOSI GPIO4
146
#endif
147
#ifndef SPI0_CS0
148
#define SPI0_CS0 GPIO5
149
#endif
150
#else
/* MODULE_ESP32C3_WEMOS_MINI_V2_1_0 */
151
#ifndef SPI0_CTRL
152
#define SPI0_CTRL FSPI
153
#endif
154
#ifndef SPI0_SCK
155
#define SPI0_SCK GPIO1
156
#endif
157
#ifndef SPI0_MISO
158
#define SPI0_MISO GPIO0
159
#endif
160
#ifndef SPI0_MOSI
161
#define SPI0_MOSI GPIO4
162
#endif
163
#ifndef SPI0_CS0
164
#define SPI0_CS0 GPIO5
165
#endif
166
#endif
179
#define UART0_TXD GPIO21
180
#define UART0_RXD GPIO20
184
#ifdef __cplusplus
185
}
/* end extern "C" */
186
#endif
187
188
/* include common peripheral definitions as last step */
189
#include "periph_conf_common.h"
190
191
#endif
/* PERIPH_CONF_H */
Generated on Sun Dec 22 2024 13:48:32 by
1.9.8