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
38
#include <stdint.h>
39
40
#ifdef __cplusplus
41
extern
"C"
{
42
#endif
43
58
#ifndef ADC_GPIOS
59
#define ADC_GPIOS { GPIO1, GPIO2, GPIO4, GPIO5, GPIO6, GPIO7, GPIO8, GPIO9 }
60
#endif
74
#ifndef I2C0_SPEED
75
#define I2C0_SPEED I2C_SPEED_FAST
76
#endif
77
#ifndef I2C0_SCL
78
#define I2C0_SCL GPIO9
79
#endif
80
#ifndef I2C0_SDA
81
#define I2C0_SDA GPIO8
82
#endif
103
#ifndef PWM0_GPIOS
104
#define PWM0_GPIOS { GPIO14, GPIO17, GPIO18, GPIO21 }
105
#endif
106
114
#ifndef MODULE_ESP_RTC_TIMER_32K
115
#ifndef PWM1_GPIOS
116
#define PWM1_GPIOS { GPIO15, GPIO16 }
117
#endif
118
#endif
119
132
#ifndef SPI0_CTRL
133
#define SPI0_CTRL FSPI
134
#endif
135
#ifndef SPI0_SCK
136
#define SPI0_SCK GPIO12
137
#endif
138
#ifndef SPI0_MISO
139
#define SPI0_MISO GPIO13
140
#endif
141
#ifndef SPI0_MOSI
142
#define SPI0_MOSI GPIO11
143
#endif
144
#ifndef SPI0_CS0
145
#define SPI0_CS0 GPIO10
146
#endif
159
#define UART0_TXD GPIO43
160
#define UART0_RXD GPIO44
164
#ifdef __cplusplus
165
}
/* end extern "C" */
166
#endif
167
168
/* include common peripheral definitions as last step */
169
#include "periph_conf_common.h"
170
Generated on Fri Jun 20 2025 21:02:35 by
1.9.1