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
9#pragma once
10
40
41#include <stdint.h>
42
43#ifdef __cplusplus
44extern "C" {
45#endif
46
61#ifndef ADC_GPIOS
62#define ADC_GPIOS { GPIO0, GPIO1, GPIO2, GPIO3, GPIO4, GPIO5 }
63#endif
65
77#ifndef I2C0_SPEED
78#define I2C0_SPEED I2C_SPEED_FAST
79#endif
80#ifndef I2C0_SCL
81#define I2C0_SCL GPIO10
82#endif
83#ifndef I2C0_SDA
84#define I2C0_SDA GPIO8
85#endif
87
100
105#ifndef PWM0_GPIOS
106# ifdef MODULE_ESP32C3_WEMOS_MINI_V1_0_0
107# define PWM0_GPIOS { GPIO1, GPIO6, GPIO7 }
108# else /* MODULE_ESP32C3_WEMOS_MINI_V2_1_0 */
109# define PWM0_GPIOS { GPIO2, GPIO6, GPIO3 }
110# endif
111#endif
112
114
132#ifdef MODULE_ESP32C3_WEMOS_MINI_V1_0_0
133#ifndef SPI0_CTRL
134#define SPI0_CTRL FSPI
135#endif
136#ifndef SPI0_SCK
137#define SPI0_SCK GPIO2
138#endif
139#ifndef SPI0_MISO
140#define SPI0_MISO GPIO3
141#endif
142#ifndef SPI0_MOSI
143#define SPI0_MOSI GPIO4
144#endif
145#ifndef SPI0_CS0
146#define SPI0_CS0 GPIO5
147#endif
148#else /* MODULE_ESP32C3_WEMOS_MINI_V2_1_0 */
149#ifndef SPI0_CTRL
150#define SPI0_CTRL FSPI
151#endif
152#ifndef SPI0_SCK
153#define SPI0_SCK GPIO1
154#endif
155#ifndef SPI0_MISO
156#define SPI0_MISO GPIO0
157#endif
158#ifndef SPI0_MOSI
159#define SPI0_MOSI GPIO4
160#endif
161#ifndef SPI0_CS0
162#define SPI0_CS0 GPIO5
163#endif
164#endif
166
177#define UART0_TXD GPIO21
178#define UART0_RXD GPIO20
179
181
182#ifdef __cplusplus
183} /* end extern "C" */
184#endif
185
186/* include common peripheral definitions as last step */
187#include "periph_conf_common.h"
188