Loading...
Searching...
No Matches
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
29#ifndef PERIPH_CONF_H
30#define PERIPH_CONF_H
31
32#include <stdint.h>
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
53#ifndef ADC_GPIOS
54#define ADC_GPIOS { GPIO1, GPIO2, GPIO4, GPIO5, GPIO6, GPIO7, GPIO8, GPIO9 }
55#endif
56
64#ifndef DAC_GPIOS
65#define DAC_GPIOS { GPIO17, GPIO18 }
66#endif
80#ifndef I2C0_SPEED
81#define I2C0_SPEED I2C_SPEED_FAST
82#endif
83#ifndef I2C0_SCL
84#define I2C0_SCL GPIO7
85#endif
86#ifndef I2C0_SDA
87#define I2C0_SDA GPIO8
88#endif
109#ifndef PWM0_GPIOS
110#define PWM0_GPIOS { GPIO39, GPIO40, GPIO41, GPIO42 }
111#endif
112
120#ifndef MODULE_ESP_RTC_TIMER_32K
121#ifndef PWM1_GPIOS
122#define PWM1_GPIOS { GPIO15, GPIO16 }
123#endif
124#endif
125
143#ifndef SPI0_CTRL
144#define SPI0_CTRL FSPI
145#endif
146#ifndef SPI0_SCK
147#define SPI0_SCK GPIO36
148#endif
149#ifndef SPI0_MISO
150#define SPI0_MISO GPIO9
151#endif
152#ifndef SPI0_MOSI
153#define SPI0_MOSI GPIO35
154#endif
155#ifndef SPI0_CS0
156#define SPI0_CS0 GPIO34
157#endif
158
159#ifndef SPI1_CTRL
160#define SPI1_CTRL HSPI
161#endif
162#ifndef SPI1_SCK
163#define SPI1_SCK GPIO12
164#endif
165#ifndef SPI1_MISO
166#define SPI1_MISO GPIO13
167#endif
168#ifndef SPI1_MOSI
169#define SPI1_MOSI GPIO11
170#endif
171#ifndef SPI1_CS0
172#define SPI1_CS0 GPIO10
173#endif
186#define UART0_TXD GPIO43
187#define UART0_RXD GPIO44
191#ifdef __cplusplus
192} /* end extern "C" */
193#endif
194
195/* include common peripheral definitions as last step */
196#include "periph_conf_common.h"
197
198#endif /* PERIPH_CONF_H */