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 
9 #pragma once
10 
45 #include <stdint.h>
46 
47 #ifdef __cplusplus
48  extern "C" {
49 #endif
50 
65 #ifndef ADC_GPIOS
66 #ifndef MODULE_ESP_LOLIN_TFT
67 #define ADC_GPIOS { GPIO36, GPIO39, GPIO34, GPIO35, GPIO32, GPIO33 }
68 #else
69 #define ADC_GPIOS { GPIO36, GPIO39, GPIO34, GPIO35 }
70 #endif
71 #endif
72 
80 #ifndef DAC_GPIOS
81 #define DAC_GPIOS { GPIO25, GPIO26 }
82 #endif
96 #ifndef I2C0_SPEED
97 #define I2C0_SPEED I2C_SPEED_FAST
98 #endif
99 #ifndef I2C0_SCL
100 #define I2C0_SCL GPIO22
101 #endif
102 #ifndef I2C0_SDA
103 #define I2C0_SDA GPIO21
104 #endif
117 #ifndef PWM0_GPIOS
118 #define PWM0_GPIOS { GPIO0, GPIO2 }
119 #endif
120 
134 #ifndef SPI0_CTRL
135 #define SPI0_CTRL VSPI
136 #endif
137 #ifndef SPI0_SCK
138 #define SPI0_SCK GPIO18
139 #endif
140 #ifndef SPI0_MISO
141 #define SPI0_MISO GPIO19
142 #endif
143 #ifndef SPI0_MOSI
144 #define SPI0_MOSI GPIO23
145 #endif
146 #ifndef SPI0_CS0
147 #define SPI0_CS0 GPIO5
148 #endif
149 
150 #ifdef MODULE_SDCARD_SPI
151 #define SPI0_CS1 GPIO4
152 #endif
153 
154 #ifdef MODULE_ESP_LOLIN_TFT
155 #define SPI0_CS2 GPI14
156 #define SPI0_CS3 GPI12
157 #endif
171 #define UART0_TXD GPIO1
172 #define UART0_RXD GPIO3
175 #ifdef __cplusplus
176 } /* end extern "C" */
177 #endif
178 
179 /* include common board definitions as last step */
180 #include "periph_conf_common.h"
181