periph_conf.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2019 Gunar Schorcht
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
29 #include <stdint.h>
30 
31 #ifdef __cplusplus
32  extern "C" {
33 #endif
34 
47 #ifndef ADC_GPIOS
48 #define ADC_GPIOS { GPIO36, GPIO39, GPIO37, GPIO38, \
49  GPIO0, GPIO2, GPIO12, GPIO13, GPIO4, GPIO15 }
50 #endif
51 
62 #ifndef DAC_GPIOS
63 #define DAC_GPIOS { }
64 #endif
78 #ifndef I2C0_SPEED
79 #define I2C0_SPEED I2C_SPEED_FAST
80 #endif
81 #ifndef I2C0_SCL
82 #define I2C0_SCL GPIO15
83 #endif
84 #ifndef I2C0_SDA
85 #define I2C0_SDA GPIO4
86 #endif
99 #ifndef PWM0_GPIOS
100 #define PWM0_GPIOS { GPIO25, GPIO17, GPIO2 }
101 #endif
102 
104 #ifndef PWM1_GPIOS
105 #define PWM1_GPIOS { GPIO22, GPIO23 }
106 #endif
120 #ifndef SPI0_CTRL
121 #define SPI0_CTRL VSPI
122 #endif
123 #ifndef SPI0_SCK
124 #define SPI0_SCK GPIO5
125 #endif
126 #ifndef SPI0_MISO
127 #define SPI0_MISO GPIO19
128 #endif
129 #ifndef SPI0_MOSI
130 #define SPI0_MOSI GPIO27
131 #endif
132 #ifndef SPI0_CS0
133 #define SPI0_CS0 GPIO18
134 #endif
148 #define UART0_TXD GPIO1
149 #define UART0_RXD GPIO3
151 #if CONFIG_FLASHMODE_DOUT || CONFIG_FLASHMODE_DIO || DOXYGEN
152 #ifndef UART1_TXD
153 #define UART1_TXD GPIO10
154 #endif
155 #ifndef UART1_RXD
156 #define UART1_RXD GPIO9
157 #endif
158 #else
159 #warning Configuration problem: Flash mode is qio or qout, \
160  GPIO9 and GPIO10 are not available for UART1 as configured
161 #endif
164 #ifdef __cplusplus
165 } /* end extern "C" */
166 #endif
167 
168 /* include common board definitions as last step */
169 #include "periph_conf_common.h"
170