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) 2018 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
43
#ifndef PERIPH_CONF_H
44
#define PERIPH_CONF_H
45
46
#include <stdint.h>
47
48
#ifdef __cplusplus
49
extern
"C"
{
50
#endif
51
66
#ifndef ADC_GPIOS
67
#ifndef MODULE_ESP_LOLIN_TFT
68
#define ADC_GPIOS { GPIO36, GPIO39, GPIO34, GPIO35, GPIO32, GPIO33 }
69
#else
70
#define ADC_GPIOS { GPIO36, GPIO39, GPIO34, GPIO35 }
71
#endif
72
#endif
73
81
#ifndef DAC_GPIOS
82
#define DAC_GPIOS { GPIO25, GPIO26 }
83
#endif
97
#ifndef I2C0_SPEED
98
#define I2C0_SPEED I2C_SPEED_FAST
99
#endif
100
#ifndef I2C0_SCL
101
#define I2C0_SCL GPIO22
102
#endif
103
#ifndef I2C0_SDA
104
#define I2C0_SDA GPIO21
105
#endif
118
#ifndef PWM0_GPIOS
119
#define PWM0_GPIOS { GPIO0, GPIO2 }
120
#endif
121
135
#ifndef SPI0_CTRL
136
#define SPI0_CTRL VSPI
137
#endif
138
#ifndef SPI0_SCK
139
#define SPI0_SCK GPIO18
140
#endif
141
#ifndef SPI0_MISO
142
#define SPI0_MISO GPIO19
143
#endif
144
#ifndef SPI0_MOSI
145
#define SPI0_MOSI GPIO23
146
#endif
147
#ifndef SPI0_CS0
148
#define SPI0_CS0 GPIO5
149
#endif
150
151
#ifdef MODULE_SDCARD_SPI
152
#define SPI0_CS1 GPIO4
153
#endif
154
155
#ifdef MODULE_ESP_LOLIN_TFT
156
#define SPI0_CS2 GPI14
157
#define SPI0_CS3 GPI12
158
#endif
172
#define UART0_TXD GPIO1
173
#define UART0_RXD GPIO3
176
#ifdef __cplusplus
177
}
/* end extern "C" */
178
#endif
179
180
/* include common board definitions as last step */
181
#include "periph_conf_common.h"
182
183
#endif
/* PERIPH_CONF_H */
Generated on Wed Dec 4 2024 00:47:44 by
1.9.8