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