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
52
#ifndef ADC_GPIOS
53
#define ADC_GPIOS { GPIO34, GPIO35, GPIO36, GPIO39 }
54
#endif
55
63
#ifndef DAC_GPIOS
64
#define DAC_GPIOS { GPIO25 }
65
#endif
79
#ifndef I2C0_SPEED
80
#define I2C0_SPEED I2C_SPEED_FAST
81
#endif
82
#ifndef I2C0_SCL
83
#define I2C0_SCL GPIO22
84
#endif
85
#ifndef I2C0_SDA
86
#define I2C0_SDA GPIO21
87
#endif
100
#ifndef PWM0_GPIOS
101
#define PWM0_GPIOS { GPIO2, GPIO0, GPIO4, GPIO15 }
102
#endif
103
117
#ifndef SPI0_CTRL
118
#define SPI0_CTRL VSPI
119
#endif
120
#ifndef SPI0_SCK
121
#define SPI0_SCK GPIO18
122
#endif
123
#ifndef SPI0_MISO
124
#define SPI0_MISO GPIO19
125
#endif
126
#ifndef SPI0_MOSI
127
#define SPI0_MOSI GPIO23
128
#endif
129
#ifndef SPI0_CS0
130
#define SPI0_CS0 GPIO5
131
#endif
145
#define UART0_TXD GPIO1
146
#define UART0_RXD GPIO3
148
#if CONFIG_FLASHMODE_DOUT || CONFIG_FLASHMODE_DIO || DOXYGEN
149
#ifndef UART1_TXD
150
#define UART1_TXD GPIO10
151
#endif
152
#ifndef UART1_RXD
153
#define UART1_RXD GPIO9
154
#endif
155
#else
156
#warning Configuration problem: Flash mode is qio or qout, \
157
GPIO9 and GPIO10 are not available for UART1 as configured
158
#endif
161
#ifdef __cplusplus
162
}
/* end extern "C" */
163
#endif
164
165
/* include common board definitions as last step */
166
#include "periph_conf_common.h"
167
168
#endif
/* PERIPH_CONF_H */
Generated on Sat Nov 23 2024 01:58:06 by
1.9.8