periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 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 
45 #ifndef PERIPH_CONF_H
46 #define PERIPH_CONF_H
47 
48 #include <stdint.h>
49 
50 #ifdef __cplusplus
51  extern "C" {
52 #endif
53 
69 #ifndef ADC_GPIOS
70 #ifndef MODULE_ESP32_WROVER_KIT_CAMERA
71 #define ADC_GPIOS { GPIO34, GPIO35, GPIO36, GPIO39 }
72 #else
73 #define ADC_GPIOS { }
74 #endif
75 #endif
76 
82 #ifndef DAC_GPIOS
83 #define DAC_GPIOS { }
84 #endif
85 
97 #ifndef I2C0_SPEED
98 #define I2C0_SPEED I2C_SPEED_FAST
99 #endif
100 #ifndef I2C0_SCL
101 #define I2C0_SCL GPIO27
102 #endif
103 #ifndef I2C0_SDA
104 #define I2C0_SDA GPIO26
105 #endif
106 
123 #ifndef PWM0_GPIOS
124 #if !MODULE_ESP32_WROVER_KIT_CAMERA || DOXYGEN
125 #define PWM0_GPIOS { GPIO0, GPIO4 }
126 #else
127 #define PWM0_GPIOS { }
128 #endif
129 #endif
130 
132 #ifndef PWM1_GPIOS
133 #define PWM1_GPIOS { }
134 #endif
135 
149 #ifndef SPI0_CTRL
150 #define SPI0_CTRL HSPI
151 #endif
152 
153 #ifndef SPI0_SCK
154 #define SPI0_SCK GPIO14
155 #endif
156 #ifndef SPI0_MOSI
157 #define SPI0_MOSI GPIO15
158 #endif
159 #ifndef SPI0_MISO
160 #define SPI0_MISO GPIO2
161 #endif
162 #ifndef SPI0_CS0
163 #define SPI0_CS0 GPIO13
164 #endif
165 
166 #if !MODULE_ESP32_WROVER_KIT_CAMERA || DOXYGEN
167 
177 #ifndef SPI1_CTRL
178 #define SPI1_CTRL VSPI
179 #endif
180 
181 #ifndef SPI1_SCK
182 #define SPI1_SCK GPIO19
183 #endif
184 #ifndef SPI1_MOSI
185 #define SPI1_MOSI GPIO23
186 #endif
187 #ifndef SPI1_MISO
188 #define SPI1_MISO GPIO25
189 #endif
190 #ifndef SPI1_CS0
191 #define SPI1_CS0 GPIO22
192 #endif
193 #endif /* !MODULE_ESP32_WROVER_KIT_CAMERA || DOXYGEN */
194 
206 #define UART0_TXD GPIO1
207 #define UART0_RXD GPIO3
211 #ifdef __cplusplus
212 } /* end extern "C" */
213 #endif
214 
215 /* include common board definitions as last step */
216 #include "periph_conf_common.h"
217 
218 #endif /* PERIPH_CONF_H */
219