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
37
38#include <stdint.h>
39
40#ifdef __cplusplus
41extern "C" {
42#endif
43
58#ifndef ADC_GPIOS
59#define ADC_GPIOS { GPIO0, GPIO1, GPIO2, GPIO3, GPIO4, GPIO5 }
60#endif
62
74#ifndef I2C0_SPEED
75#define I2C0_SPEED I2C_SPEED_FAST
76#endif
77#ifndef I2C0_SCL
78#define I2C0_SCL GPIO10
79#endif
80#ifndef I2C0_SDA
81#define I2C0_SDA GPIO8
82#endif
84
97
102#ifndef PWM0_GPIOS
103# ifdef MODULE_ESP32C3_WEMOS_MINI_V1_0_0
104# define PWM0_GPIOS { GPIO1, GPIO6, GPIO7 }
105# else /* MODULE_ESP32C3_WEMOS_MINI_V2_1_0 */
106# define PWM0_GPIOS { GPIO2, GPIO6, GPIO3 }
107# endif
108#endif
109
111
129#ifdef MODULE_ESP32C3_WEMOS_MINI_V1_0_0
130#ifndef SPI0_CTRL
131#define SPI0_CTRL FSPI
132#endif
133#ifndef SPI0_SCK
134#define SPI0_SCK GPIO2
135#endif
136#ifndef SPI0_MISO
137#define SPI0_MISO GPIO3
138#endif
139#ifndef SPI0_MOSI
140#define SPI0_MOSI GPIO4
141#endif
142#ifndef SPI0_CS0
143#define SPI0_CS0 GPIO5
144#endif
145#else /* MODULE_ESP32C3_WEMOS_MINI_V2_1_0 */
146#ifndef SPI0_CTRL
147#define SPI0_CTRL FSPI
148#endif
149#ifndef SPI0_SCK
150#define SPI0_SCK GPIO1
151#endif
152#ifndef SPI0_MISO
153#define SPI0_MISO GPIO0
154#endif
155#ifndef SPI0_MOSI
156#define SPI0_MOSI GPIO4
157#endif
158#ifndef SPI0_CS0
159#define SPI0_CS0 GPIO5
160#endif
161#endif
163
174#define UART0_TXD GPIO21
175#define UART0_RXD GPIO20
176
178
179#ifdef __cplusplus
180} /* end extern "C" */
181#endif
182
183/* include common peripheral definitions as last step */
184#include "periph_conf_common.h"
185