Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
35
36
#include <stdint.h>
37
38
#ifdef __cplusplus
39
extern
"C"
{
40
#endif
41
56
#ifndef ADC_GPIOS
57
#define ADC_GPIOS { GPIO1, GPIO2, GPIO3, GPIO4, GPIO5, GPIO6, GPIO7, GPIO8, GPIO9, GPIO10 }
58
#endif
59
70
#ifndef DAC_GPIOS
71
#define DAC_GPIOS { GPIO17, GPIO18 }
72
#endif
74
86
#ifndef I2C0_SPEED
87
#define I2C0_SPEED I2C_SPEED_FAST
88
#endif
89
#ifndef I2C0_SCL
90
#define I2C0_SCL GPIO9
91
#endif
92
#ifndef I2C0_SDA
93
#define I2C0_SDA GPIO8
94
#endif
96
110
115
#ifndef PWM0_GPIOS
116
#define PWM0_GPIOS { GPIO11, GPIO12, GPIO13, GPIO14 }
117
#endif
118
126
#ifndef MODULE_ESP_RTC_TIMER_32K
127
#ifndef PWM1_GPIOS
128
#define PWM1_GPIOS { GPIO15, GPIO16 }
129
#endif
130
#endif
131
133
144
#ifndef SPI0_CTRL
145
#define SPI0_CTRL FSPI
146
#endif
147
#ifndef SPI0_SCK
148
#define SPI0_SCK GPIO36
149
#endif
150
#ifndef SPI0_MISO
151
#define SPI0_MISO GPIO37
152
#endif
153
#ifndef SPI0_MOSI
154
#define SPI0_MOSI GPIO35
155
#endif
156
#ifndef SPI0_CS0
157
#define SPI0_CS0 GPIO34
158
#endif
160
171
#define UART0_TXD GPIO43
172
#define UART0_RXD GPIO44
173
175
176
#ifdef __cplusplus
177
}
/* end extern "C" */
178
#endif
179
180
/* include common peripheral definitions as last step */
181
#include "periph_conf_common.h"
182
Generated on Wed Aug 27 2025 20:40:40 by
1.13.2