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: 2018 Gunar Schorcht
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
42
#include <stdint.h>
43
44
#ifdef __cplusplus
45
extern
"C"
{
46
#endif
47
62
#ifndef ADC_GPIOS
63
#ifndef MODULE_ESP_LOLIN_TFT
64
#define ADC_GPIOS { GPIO36, GPIO39, GPIO34, GPIO35, GPIO32, GPIO33 }
65
#else
66
#define ADC_GPIOS { GPIO36, GPIO39, GPIO34, GPIO35 }
67
#endif
68
#endif
69
77
#ifndef DAC_GPIOS
78
#define DAC_GPIOS { GPIO25, GPIO26 }
79
#endif
93
#ifndef I2C0_SPEED
94
#define I2C0_SPEED I2C_SPEED_FAST
95
#endif
96
#ifndef I2C0_SCL
97
#define I2C0_SCL GPIO22
98
#endif
99
#ifndef I2C0_SDA
100
#define I2C0_SDA GPIO21
101
#endif
114
#ifndef PWM0_GPIOS
115
#define PWM0_GPIOS { GPIO0, GPIO2 }
116
#endif
117
131
#ifndef SPI0_CTRL
132
#define SPI0_CTRL VSPI
133
#endif
134
#ifndef SPI0_SCK
135
#define SPI0_SCK GPIO18
136
#endif
137
#ifndef SPI0_MISO
138
#define SPI0_MISO GPIO19
139
#endif
140
#ifndef SPI0_MOSI
141
#define SPI0_MOSI GPIO23
142
#endif
143
#ifndef SPI0_CS0
144
#define SPI0_CS0 GPIO5
145
#endif
146
147
#ifdef MODULE_SDCARD_SPI
148
#define SPI0_CS1 GPIO4
149
#endif
150
151
#ifdef MODULE_ESP_LOLIN_TFT
152
#define SPI0_CS2 GPI14
153
#define SPI0_CS3 GPI12
154
#endif
168
#define UART0_TXD GPIO1
169
#define UART0_RXD GPIO3
172
#ifdef __cplusplus
173
}
/* end extern "C" */
174
#endif
175
176
/* include common board definitions as last step */
177
#include "periph_conf_common.h"
178
Generated on Sat Sep 6 2025 20:14:01 by
1.9.1