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
96 #ifndef I2C0_SPEED
97 #define I2C0_SPEED I2C_SPEED_FAST
98 #endif
99 #ifndef I2C0_SCL
100 #define I2C0_SCL GPIO27
101 #endif
102 #ifndef I2C0_SDA
103 #define I2C0_SDA GPIO26
104 #endif
122 #ifndef PWM0_GPIOS
123 #if !MODULE_ESP32_WROVER_KIT_CAMERA || DOXYGEN
124 #define PWM0_GPIOS { GPIO0, GPIO4 }
125 #else
126 #define PWM0_GPIOS { }
127 #endif
128 #endif
129 
143 #ifndef SPI0_CTRL
144 #define SPI0_CTRL HSPI
145 #endif
146 
147 #ifndef SPI0_SCK
148 #define SPI0_SCK GPIO14
149 #endif
150 #ifndef SPI0_MOSI
151 #define SPI0_MOSI GPIO15
152 #endif
153 #ifndef SPI0_MISO
154 #define SPI0_MISO GPIO2
155 #endif
156 #ifndef SPI0_CS0
157 #define SPI0_CS0 GPIO13
158 #endif
159 
160 #if !MODULE_ESP32_WROVER_KIT_CAMERA || DOXYGEN
171 #ifndef SPI1_CTRL
172 #define SPI1_CTRL VSPI
173 #endif
174 
175 #ifndef SPI1_SCK
176 #define SPI1_SCK GPIO19
177 #endif
178 #ifndef SPI1_MOSI
179 #define SPI1_MOSI GPIO23
180 #endif
181 #ifndef SPI1_MISO
182 #define SPI1_MISO GPIO25
183 #endif
184 #ifndef SPI1_CS0
185 #define SPI1_CS0 GPIO22
186 #endif
187 #endif /* !MODULE_ESP32_WROVER_KIT_CAMERA || DOXYGEN */
200 #define UART0_TXD GPIO1
201 #define UART0_RXD GPIO3
204 #ifdef __cplusplus
205 } /* end extern "C" */
206 #endif
207 
208 /* include common board definitions as last step */
209 #include "periph_conf_common.h"
210 
211 #endif /* PERIPH_CONF_H */