periph_conf.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2018 Gunar Schorcht
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
30 #include <stdint.h>
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
50 #ifndef ADC_GPIOS
51 #define ADC_GPIOS { GPIO0 , GPIO2 , GPIO4 , GPIO12, GPIO13, GPIO14, \
52  GPIO15, GPIO25, GPIO26, GPIO27, GPIO32, GPIO33, \
53  GPIO34, GPIO35, GPIO36, GPIO39 }
54 #endif
55 
66 #ifndef DAC_GPIOS
67 #define DAC_GPIOS { GPIO25, GPIO26 }
68 #endif
82 #ifndef I2C0_SPEED
83 #define I2C0_SPEED I2C_SPEED_FAST
84 #endif
85 #ifndef I2C0_SCL
86 #define I2C0_SCL GPIO22
87 #endif
88 #ifndef I2C0_SDA
89 #define I2C0_SDA GPIO21
90 #endif
111 #ifndef PWM0_GPIOS
112 #define PWM0_GPIOS { GPIO0, GPIO2, GPIO4, GPIO16, GPIO17 }
113 #endif
114 
119 #ifndef PWM1_GPIOS
120 #define PWM1_GPIOS { GPIO27, GPIO32, GPIO33 }
121 #endif
134 #ifndef SPI0_CTRL
135 #define SPI0_CTRL VSPI
136 #endif
137 #ifndef SPI0_SCK
138 #define SPI0_SCK GPIO18
139 #endif
140 #ifndef SPI0_MISO
141 #define SPI0_MISO GPIO19
142 #endif
143 #ifndef SPI0_MOSI
144 #define SPI0_MOSI GPIO23
145 #endif
146 #ifndef SPI0_CS0
147 #define SPI0_CS0 GPIO5
148 #endif
149 
150 #ifndef SPI1_CTRL
151 #define SPI1_CTRL HSPI
152 #endif
153 #ifndef SPI1_SCK
154 #define SPI1_SCK GPIO14
155 #endif
156 #ifndef SPI1_MISO
157 #define SPI1_MISO GPIO12
158 #endif
159 #ifndef SPI1_MOSI
160 #define SPI1_MOSI GPIO13
161 #endif
162 #ifndef SPI1_CS0
163 #define SPI1_CS0 GPIO15
164 #endif
178 #define UART0_TXD GPIO1
179 #define UART0_RXD GPIO3
181 #if CONFIG_FLASHMODE_DOUT || CONFIG_FLASHMODE_DIO || DOXYGEN
182 #ifndef UART1_TXD
183 #define UART1_TXD GPIO10
184 #endif
185 #ifndef UART1_RXD
186 #define UART1_RXD GPIO9
187 #endif
188 #else
189 #warning Configuration problem: Flash mode is qio or qout, \
190  GPIO9 and GPIO10 are not available for UART1 as configured
191 #endif
194 #ifdef __cplusplus
195 } /* end extern "C" */
196 #endif
197 
198 /* include common peripheral definitions as last step */
199 #include "periph_conf_common.h"
200