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 
48 #ifndef ADC_GPIOS
49 #define ADC_GPIOS { GPIO34, GPIO35, GPIO36, GPIO39 }
50 #endif
51 
59 #ifndef DAC_GPIOS
60 #define DAC_GPIOS { GPIO25 }
61 #endif
75 #ifndef I2C0_SPEED
76 #define I2C0_SPEED I2C_SPEED_FAST
77 #endif
78 #ifndef I2C0_SCL
79 #define I2C0_SCL GPIO22
80 #endif
81 #ifndef I2C0_SDA
82 #define I2C0_SDA GPIO21
83 #endif
96 #ifndef PWM0_GPIOS
97 #define PWM0_GPIOS { GPIO2, GPIO0, GPIO4, GPIO15 }
98 #endif
99 
113 #ifndef SPI0_CTRL
114 #define SPI0_CTRL VSPI
115 #endif
116 #ifndef SPI0_SCK
117 #define SPI0_SCK GPIO18
118 #endif
119 #ifndef SPI0_MISO
120 #define SPI0_MISO GPIO19
121 #endif
122 #ifndef SPI0_MOSI
123 #define SPI0_MOSI GPIO23
124 #endif
125 #ifndef SPI0_CS0
126 #define SPI0_CS0 GPIO5
127 #endif
141 #define UART0_TXD GPIO1
142 #define UART0_RXD GPIO3
144 #if CONFIG_FLASHMODE_DOUT || CONFIG_FLASHMODE_DIO || DOXYGEN
145 #ifndef UART1_TXD
146 #define UART1_TXD GPIO10
147 #endif
148 #ifndef UART1_RXD
149 #define UART1_RXD GPIO9
150 #endif
151 #else
152 #warning Configuration problem: Flash mode is qio or qout, \
153  GPIO9 and GPIO10 are not available for UART1 as configured
154 #endif
157 #ifdef __cplusplus
158 } /* end extern "C" */
159 #endif
160 
161 /* include common board definitions as last step */
162 #include "periph_conf_common.h"
163