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) 2019 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
31
32
#include <stdint.h>
33
34
#ifdef __cplusplus
35
extern
"C"
{
36
#endif
37
42
50
#ifndef ADC_GPIOS
51
#define ADC_GPIOS { GPIO36, GPIO39, GPIO37, GPIO38, \
52
GPIO0, GPIO2, GPIO12, GPIO13, GPIO4, GPIO15 }
53
#endif
54
65
#ifndef DAC_GPIOS
66
#define DAC_GPIOS { }
67
#endif
69
81
#ifndef I2C0_SPEED
82
#define I2C0_SPEED I2C_SPEED_FAST
83
#endif
84
#ifndef I2C0_SCL
85
#define I2C0_SCL GPIO15
86
#endif
87
#ifndef I2C0_SDA
88
#define I2C0_SDA GPIO4
89
#endif
91
102
#ifndef PWM0_GPIOS
103
#define PWM0_GPIOS { GPIO25, GPIO17, GPIO2 }
104
#endif
105
107
#ifndef PWM1_GPIOS
108
#define PWM1_GPIOS { GPIO22, GPIO23 }
109
#endif
111
123
#ifndef SPI0_CTRL
124
#define SPI0_CTRL VSPI
125
#endif
126
#ifndef SPI0_SCK
127
#define SPI0_SCK GPIO5
128
#endif
129
#ifndef SPI0_MISO
130
#define SPI0_MISO GPIO19
131
#endif
132
#ifndef SPI0_MOSI
133
#define SPI0_MOSI GPIO27
134
#endif
135
#ifndef SPI0_CS0
136
#define SPI0_CS0 GPIO18
137
#endif
139
151
#define UART0_TXD GPIO1
152
#define UART0_RXD GPIO3
153
154
#if CONFIG_FLASHMODE_DOUT || CONFIG_FLASHMODE_DIO || DOXYGEN
155
#ifndef UART1_TXD
156
#define UART1_TXD GPIO10
157
#endif
158
#ifndef UART1_RXD
159
#define UART1_RXD GPIO9
160
#endif
161
#else
162
#warning Configuration problem: Flash mode is qio or qout, \
163
GPIO9 and GPIO10 are not available for UART1 as configured
164
#endif
166
167
#ifdef __cplusplus
168
}
/* end extern "C" */
169
#endif
170
171
/* include common board definitions as last step */
172
#include "periph_conf_common.h"
173
Generated on Thu Jul 3 2025 17:41:19 by
1.13.2