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