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) 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
9
#pragma once
10
33
#include <stdint.h>
34
35
#ifdef __cplusplus
36
extern
"C"
{
37
#endif
38
53
#ifndef ADC_GPIOS
54
#define ADC_GPIOS { GPIO0 , GPIO2 , GPIO4 , GPIO12, GPIO13, GPIO14, \
55
GPIO15, GPIO25, GPIO26, GPIO27, GPIO32, GPIO33, \
56
GPIO34, GPIO35, GPIO36, GPIO39 }
57
#endif
58
69
#ifndef DAC_GPIOS
70
#define DAC_GPIOS { GPIO25, GPIO26 }
71
#endif
85
#ifndef I2C0_SPEED
86
#define I2C0_SPEED I2C_SPEED_FAST
87
#endif
88
#ifndef I2C0_SCL
89
#define I2C0_SCL GPIO22
90
#endif
91
#ifndef I2C0_SDA
92
#define I2C0_SDA GPIO21
93
#endif
114
#ifndef PWM0_GPIOS
115
#define PWM0_GPIOS { GPIO0, GPIO2, GPIO4, GPIO16, GPIO17 }
116
#endif
117
122
#ifndef PWM1_GPIOS
123
#define PWM1_GPIOS { GPIO27, GPIO32, GPIO33 }
124
#endif
137
#ifndef SPI0_CTRL
138
#define SPI0_CTRL VSPI
139
#endif
140
#ifndef SPI0_SCK
141
#define SPI0_SCK GPIO18
142
#endif
143
#ifndef SPI0_MISO
144
#define SPI0_MISO GPIO19
145
#endif
146
#ifndef SPI0_MOSI
147
#define SPI0_MOSI GPIO23
148
#endif
149
#ifndef SPI0_CS0
150
#define SPI0_CS0 GPIO5
151
#endif
152
153
#ifndef SPI1_CTRL
154
#define SPI1_CTRL HSPI
155
#endif
156
#ifndef SPI1_SCK
157
#define SPI1_SCK GPIO14
158
#endif
159
#ifndef SPI1_MISO
160
#define SPI1_MISO GPIO12
161
#endif
162
#ifndef SPI1_MOSI
163
#define SPI1_MOSI GPIO13
164
#endif
165
#ifndef SPI1_CS0
166
#define SPI1_CS0 GPIO15
167
#endif
181
#define UART0_TXD GPIO1
182
#define UART0_RXD GPIO3
184
#if CONFIG_FLASHMODE_DOUT || CONFIG_FLASHMODE_DIO || DOXYGEN
185
#ifndef UART1_TXD
186
#define UART1_TXD GPIO10
187
#endif
188
#ifndef UART1_RXD
189
#define UART1_RXD GPIO9
190
#endif
191
#else
192
#warning Configuration problem: Flash mode is qio or qout, \
193
GPIO9 and GPIO10 are not available for UART1 as configured
194
#endif
197
#ifdef __cplusplus
198
}
/* end extern "C" */
199
#endif
200
201
/* include common peripheral definitions as last step */
202
#include "periph_conf_common.h"
203
Generated on Sat Jun 28 2025 19:41:33 by
1.9.1