periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2022 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 
37 #ifndef PERIPH_CONF_H
38 #define PERIPH_CONF_H
39 
40 #include <stdint.h>
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
60 #ifndef ADC_GPIOS
61 #define ADC_GPIOS { GPIO1, GPIO2, GPIO3, GPIO4, GPIO5, GPIO6, GPIO7, GPIO8, GPIO9, GPIO10 }
62 #endif
63 
74 #ifndef DAC_GPIOS
75 #define DAC_GPIOS { GPIO17, GPIO18 }
76 #endif
90 #ifndef I2C0_SPEED
91 #define I2C0_SPEED I2C_SPEED_FAST
92 #endif
93 #ifndef I2C0_SCL
94 #define I2C0_SCL GPIO9
95 #endif
96 #ifndef I2C0_SDA
97 #define I2C0_SDA GPIO8
98 #endif
119 #ifndef PWM0_GPIOS
120 #define PWM0_GPIOS { GPIO11, GPIO12, GPIO13, GPIO14 }
121 #endif
122 
130 #ifndef MODULE_ESP_RTC_TIMER_32K
131 #ifndef PWM1_GPIOS
132 #define PWM1_GPIOS { GPIO15, GPIO16 }
133 #endif
134 #endif
135 
148 #ifndef SPI0_CTRL
149 #define SPI0_CTRL FSPI
150 #endif
151 #ifndef SPI0_SCK
152 #define SPI0_SCK GPIO36
153 #endif
154 #ifndef SPI0_MISO
155 #define SPI0_MISO GPIO37
156 #endif
157 #ifndef SPI0_MOSI
158 #define SPI0_MOSI GPIO35
159 #endif
160 #ifndef SPI0_CS0
161 #define SPI0_CS0 GPIO34
162 #endif
175 #define UART0_TXD GPIO43
176 #define UART0_RXD GPIO44
180 #ifdef __cplusplus
181 } /* end extern "C" */
182 #endif
183 
184 /* include common peripheral definitions as last step */
185 #include "periph_conf_common.h"
186 
187 #endif /* PERIPH_CONF_H */