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
39
#include <stdint.h>
40
41
#ifdef __cplusplus
42
extern
"C"
{
43
#endif
44
59
#ifndef ADC_GPIOS
60
#define ADC_GPIOS { GPIO1, GPIO2, GPIO3, GPIO4, GPIO5, GPIO6, GPIO7, GPIO8, GPIO9, GPIO10 }
61
#endif
62
73
#ifndef DAC_GPIOS
74
#define DAC_GPIOS { GPIO17, GPIO18 }
75
#endif
89
#ifndef I2C0_SPEED
90
#define I2C0_SPEED I2C_SPEED_FAST
91
#endif
92
#ifndef I2C0_SCL
93
#define I2C0_SCL GPIO9
94
#endif
95
#ifndef I2C0_SDA
96
#define I2C0_SDA GPIO8
97
#endif
118
#ifndef PWM0_GPIOS
119
#define PWM0_GPIOS { GPIO11, GPIO12, GPIO13, GPIO14 }
120
#endif
121
129
#ifndef MODULE_ESP_RTC_TIMER_32K
130
#ifndef PWM1_GPIOS
131
#define PWM1_GPIOS { GPIO15, GPIO16 }
132
#endif
133
#endif
134
147
#ifndef SPI0_CTRL
148
#define SPI0_CTRL FSPI
149
#endif
150
#ifndef SPI0_SCK
151
#define SPI0_SCK GPIO36
152
#endif
153
#ifndef SPI0_MISO
154
#define SPI0_MISO GPIO37
155
#endif
156
#ifndef SPI0_MOSI
157
#define SPI0_MOSI GPIO35
158
#endif
159
#ifndef SPI0_CS0
160
#define SPI0_CS0 GPIO34
161
#endif
174
#define UART0_TXD GPIO43
175
#define UART0_RXD GPIO44
179
#ifdef __cplusplus
180
}
/* end extern "C" */
181
#endif
182
183
/* include common peripheral definitions as last step */
184
#include "periph_conf_common.h"
185
Generated on Mon Jun 30 2025 14:58:01 by
1.9.1