Loading...
Searching...
No Matches
periph_conf.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022 Gunar Schorcht
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
27
28#include <stdint.h>
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
49#ifndef ADC_GPIOS
50#define ADC_GPIOS { GPIO1, GPIO2, GPIO4, GPIO5, GPIO6, GPIO7, GPIO8, GPIO9 }
51#endif
52
60#ifndef DAC_GPIOS
61#define DAC_GPIOS { GPIO17, GPIO18 }
62#endif
64
76#ifndef I2C0_SPEED
77#define I2C0_SPEED I2C_SPEED_FAST
78#endif
79#ifndef I2C0_SCL
80#define I2C0_SCL GPIO7
81#endif
82#ifndef I2C0_SDA
83#define I2C0_SDA GPIO8
84#endif
86
100
105#ifndef PWM0_GPIOS
106#define PWM0_GPIOS { GPIO39, GPIO40, GPIO41, GPIO42 }
107#endif
108
116#ifndef MODULE_ESP_RTC_TIMER_32K
117#ifndef PWM1_GPIOS
118#define PWM1_GPIOS { GPIO15, GPIO16 }
119#endif
120#endif
121
123
138
139#ifndef SPI0_CTRL
140#define SPI0_CTRL FSPI
141#endif
142#ifndef SPI0_SCK
143#define SPI0_SCK GPIO36
144#endif
145#ifndef SPI0_MISO
146#define SPI0_MISO GPIO9
147#endif
148#ifndef SPI0_MOSI
149#define SPI0_MOSI GPIO35
150#endif
151#ifndef SPI0_CS0
152#define SPI0_CS0 GPIO34
153#endif
154
155#ifndef SPI1_CTRL
156#define SPI1_CTRL HSPI
157#endif
158#ifndef SPI1_SCK
159#define SPI1_SCK GPIO12
160#endif
161#ifndef SPI1_MISO
162#define SPI1_MISO GPIO13
163#endif
164#ifndef SPI1_MOSI
165#define SPI1_MOSI GPIO11
166#endif
167#ifndef SPI1_CS0
168#define SPI1_CS0 GPIO10
169#endif
171
182#define UART0_TXD GPIO43
183#define UART0_RXD GPIO44
184
186
187#ifdef __cplusplus
188} /* end extern "C" */
189#endif
190
191/* include common peripheral definitions as last step */
192#include "periph_conf_common.h"
193