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 
43 #ifndef PERIPH_CONF_H
44 #define PERIPH_CONF_H
45 
46 #include <stdint.h>
47 
48 #ifdef __cplusplus
49  extern "C" {
50 #endif
51 
66 #ifndef ADC_GPIOS
67 #ifndef MODULE_ESP_LOLIN_TFT
68 #define ADC_GPIOS { GPIO36, GPIO39, GPIO34, GPIO35, GPIO32, GPIO33 }
69 #else
70 #define ADC_GPIOS { GPIO36, GPIO39, GPIO34, GPIO35 }
71 #endif
72 #endif
73 
81 #ifndef DAC_GPIOS
82 #define DAC_GPIOS { GPIO25, GPIO26 }
83 #endif
84 
98 #ifndef I2C0_SPEED
99 #define I2C0_SPEED I2C_SPEED_FAST
100 #endif
101 #ifndef I2C0_SCL
102 #define I2C0_SCL GPIO22
103 #endif
104 #ifndef I2C0_SDA
105 #define I2C0_SDA GPIO21
106 #endif
107 
120 #ifndef PWM0_GPIOS
121 #define PWM0_GPIOS { GPIO0, GPIO2 }
122 #endif
123 
125 #ifndef PWM1_GPIOS
126 #define PWM1_GPIOS { }
127 #endif
128 
143 #ifndef SPI0_CTRL
144 #define SPI0_CTRL VSPI
145 #endif
146 #ifndef SPI0_SCK
147 #define SPI0_SCK GPIO18
148 #endif
149 #ifndef SPI0_MISO
150 #define SPI0_MISO GPIO19
151 #endif
152 #ifndef SPI0_MOSI
153 #define SPI0_MOSI GPIO23
154 #endif
155 #ifndef SPI0_CS0
156 #define SPI0_CS0 GPIO5
157 #endif
158 
159 #ifdef MODULE_SDCARD_SPI
160 #define SPI0_CS1 GPIO4
161 #endif
162 
163 #ifdef MODULE_ESP_LOLIN_TFT
164 #define SPI0_CS2 GPI14
165 #define SPI0_CS3 GPI12
166 #endif
167 
181 #define UART0_TXD GPIO1
182 #define UART0_RXD GPIO3
186 #ifdef __cplusplus
187 } /* end extern "C" */
188 #endif
189 
190 /* include common board definitions as last step */
191 #include "periph_conf_common.h"
192 
193 #endif /* PERIPH_CONF_H */
194