Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
periph_conf.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2019 Yegor Yefremov
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
29
#include <stdint.h>
30
31
#ifdef __cplusplus
32
extern
"C"
{
33
#endif
34
47
#ifndef ADC_GPIOS
48
#if MODULE_ESP32_TTGO_T_BEAM_V1_0
49
#define ADC_GPIOS { GPIO0, GPIO2, GPIO4, GPIO13, GPIO25, \
50
GPIO32, GPIO33, GPIO35, GPIO36, GPIO39 }
51
#else
52
#define ADC_GPIOS { GPIO0, GPIO2, GPIO4, GPIO13, GPIO25, \
53
GPIO32, GPIO33, GPIO35, GPIO36, GPIO34 }
54
#endif
55
#endif
56
67
#ifndef DAC_GPIOS
68
#define DAC_GPIOS { GPIO25 }
69
#endif
83
#ifndef I2C0_SPEED
84
#define I2C0_SPEED I2C_SPEED_FAST
85
#endif
86
#ifndef I2C0_SCL
87
#define I2C0_SCL GPIO22
88
#endif
89
#ifndef I2C0_SDA
90
#define I2C0_SDA GPIO21
91
#endif
104
#ifndef PWM0_GPIOS
105
#define PWM0_GPIOS { GPIO14, GPIO0, GPIO2, GPIO25 }
106
#endif
120
#ifndef SPI0_CTRL
121
#define SPI0_CTRL VSPI
122
#endif
123
#ifndef SPI0_SCK
124
#define SPI0_SCK GPIO5
125
#endif
126
#ifndef SPI0_MISO
127
#define SPI0_MISO GPIO19
128
#endif
129
#ifndef SPI0_MOSI
130
#define SPI0_MOSI GPIO27
131
#endif
132
#ifndef SPI0_CS0
133
#define SPI0_CS0 GPIO18
134
#endif
148
#define UART0_TXD GPIO1
149
#define UART0_RXD GPIO3
151
#ifndef UART1_TXD
152
#if MODULE_ESP32_TTGO_T_BEAM_V1_0
153
#define UART1_TXD GPIO12
154
#else
155
#define UART1_TXD GPIO15
156
#endif
/* MODULE_ESP32_TTGO_T_BEAM_V1_0 */
157
#endif
158
#ifndef UART1_RXD
159
#if MODULE_ESP32_TTGO_T_BEAM_V1_0
160
#define UART1_RXD GPIO34
161
#else
162
#define UART1_RXD GPIO12
163
#endif
/* MODULE_ESP32_TTGO_T_BEAM_V1_0 */
164
#endif
167
#ifdef __cplusplus
168
}
/* end extern "C" */
169
#endif
170
171
/* include common board definitions as last step */
172
#include "periph_conf_common.h"
173
Generated on Sat Sep 6 2025 20:14:01 by
1.9.1