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
34
35
#include <stdint.h>
36
37
#ifdef __cplusplus
38
extern
"C"
{
39
#endif
40
55
#ifndef ADC_GPIOS
56
#define ADC_GPIOS { GPIO1, GPIO2, GPIO4, GPIO5, GPIO6, GPIO7, GPIO8, GPIO9 }
57
#endif
59
71
#ifndef I2C0_SPEED
72
#define I2C0_SPEED I2C_SPEED_FAST
73
#endif
74
#ifndef I2C0_SCL
75
#define I2C0_SCL GPIO9
76
#endif
77
#ifndef I2C0_SDA
78
#define I2C0_SDA GPIO8
79
#endif
81
95
100
#ifndef PWM0_GPIOS
101
#define PWM0_GPIOS { GPIO14, GPIO17, GPIO18, GPIO21 }
102
#endif
103
111
#ifndef MODULE_ESP_RTC_TIMER_32K
112
#ifndef PWM1_GPIOS
113
#define PWM1_GPIOS { GPIO15, GPIO16 }
114
#endif
115
#endif
116
118
129
#ifndef SPI0_CTRL
130
#define SPI0_CTRL FSPI
131
#endif
132
#ifndef SPI0_SCK
133
#define SPI0_SCK GPIO12
134
#endif
135
#ifndef SPI0_MISO
136
#define SPI0_MISO GPIO13
137
#endif
138
#ifndef SPI0_MOSI
139
#define SPI0_MOSI GPIO11
140
#endif
141
#ifndef SPI0_CS0
142
#define SPI0_CS0 GPIO10
143
#endif
145
156
#define UART0_TXD GPIO43
157
#define UART0_RXD GPIO44
158
160
161
#ifdef __cplusplus
162
}
/* end extern "C" */
163
#endif
164
165
/* include common peripheral definitions as last step */
166
#include "periph_conf_common.h"
167
Generated on Wed Aug 27 2025 20:40:40 by
1.13.2