Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
9
#pragma once
10
31
#include <stdint.h>
32
33
#ifdef __cplusplus
34
extern
"C"
{
35
#endif
36
52
#ifndef ADC_GPIOS
53
#define ADC_GPIOS { GPIO1, GPIO2, GPIO4, GPIO5, GPIO6, GPIO7, GPIO8, GPIO9 }
54
#endif
55
63
#ifndef DAC_GPIOS
64
#define DAC_GPIOS { GPIO17, GPIO18 }
65
#endif
79
#ifndef I2C0_SPEED
80
#define I2C0_SPEED I2C_SPEED_FAST
81
#endif
82
#ifndef I2C0_SCL
83
#define I2C0_SCL GPIO7
84
#endif
85
#ifndef I2C0_SDA
86
#define I2C0_SDA GPIO8
87
#endif
108
#ifndef PWM0_GPIOS
109
#define PWM0_GPIOS { GPIO39, GPIO40, GPIO41, GPIO42 }
110
#endif
111
119
#ifndef MODULE_ESP_RTC_TIMER_32K
120
#ifndef PWM1_GPIOS
121
#define PWM1_GPIOS { GPIO15, GPIO16 }
122
#endif
123
#endif
124
142
#ifndef SPI0_CTRL
143
#define SPI0_CTRL FSPI
144
#endif
145
#ifndef SPI0_SCK
146
#define SPI0_SCK GPIO36
147
#endif
148
#ifndef SPI0_MISO
149
#define SPI0_MISO GPIO9
150
#endif
151
#ifndef SPI0_MOSI
152
#define SPI0_MOSI GPIO35
153
#endif
154
#ifndef SPI0_CS0
155
#define SPI0_CS0 GPIO34
156
#endif
157
158
#ifndef SPI1_CTRL
159
#define SPI1_CTRL HSPI
160
#endif
161
#ifndef SPI1_SCK
162
#define SPI1_SCK GPIO12
163
#endif
164
#ifndef SPI1_MISO
165
#define SPI1_MISO GPIO13
166
#endif
167
#ifndef SPI1_MOSI
168
#define SPI1_MOSI GPIO11
169
#endif
170
#ifndef SPI1_CS0
171
#define SPI1_CS0 GPIO10
172
#endif
185
#define UART0_TXD GPIO43
186
#define UART0_RXD GPIO44
190
#ifdef __cplusplus
191
}
/* end extern "C" */
192
#endif
193
194
/* include common peripheral definitions as last step */
195
#include "periph_conf_common.h"
196
Generated on Mon Jun 30 2025 14:58:01 by
1.9.1