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
30#ifndef PERIPH_CONF_H
31#define PERIPH_CONF_H
32
33#include <stdint.h>
34
35#ifdef __cplusplus
36 extern "C" {
37#endif
38
51#ifndef ADC_GPIOS
52#define ADC_GPIOS { GPIO36, GPIO39, GPIO37, GPIO38, \
53 GPIO0, GPIO2, GPIO12, GPIO13, GPIO4, GPIO15 }
54#endif
55
66#ifndef DAC_GPIOS
67#define DAC_GPIOS { }
68#endif
82#ifndef I2C0_SPEED
83#define I2C0_SPEED I2C_SPEED_FAST
84#endif
85#ifndef I2C0_SCL
86#define I2C0_SCL GPIO15
87#endif
88#ifndef I2C0_SDA
89#define I2C0_SDA GPIO4
90#endif
103#ifndef PWM0_GPIOS
104#define PWM0_GPIOS { GPIO25, GPIO0, GPIO2, GPIO17 }
105#endif
106
108#ifndef PWM1_GPIOS
109#define PWM1_GPIOS { GPIO22, GPIO23 }
110#endif
124#ifndef SPI0_CTRL
125#define SPI0_CTRL VSPI
126#endif
127#ifndef SPI0_SCK
128#define SPI0_SCK GPIO5
129#endif
130#ifndef SPI0_MISO
131#define SPI0_MISO GPIO19
132#endif
133#ifndef SPI0_MOSI
134#define SPI0_MOSI GPIO27
135#endif
136#ifndef SPI0_CS0
137#define SPI0_CS0 GPIO18
138#endif
152#define UART0_TXD GPIO1
153#define UART0_RXD GPIO3
155#if CONFIG_FLASHMODE_DOUT || CONFIG_FLASHMODE_DIO || DOXYGEN
156#ifndef UART1_TXD
157#define UART1_TXD GPIO10
158#endif
159#ifndef UART1_RXD
160#define UART1_RXD GPIO9
161#endif
162#else
163#warning Configuration problem: Flash mode is qio or qout, \
164 GPIO9 and GPIO10 are not available for UART1 as configured
165#endif
168#ifdef __cplusplus
169} /* end extern "C" */
170#endif
171
172/* include common board definitions as last step */
173#include "periph_conf_common.h"
174
175#endif /* PERIPH_CONF_H */