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
66 
80 #ifndef I2C0_SPEED
81 #define I2C0_SPEED I2C_SPEED_FAST
82 #endif
83 #ifndef I2C0_SCL
84 #define I2C0_SCL GPIO22
85 #endif
86 #ifndef I2C0_SDA
87 #define I2C0_SDA GPIO21
88 #endif
89 
102 #ifndef PWM0_GPIOS
103 #define PWM0_GPIOS { GPIO2, GPIO0, GPIO4, GPIO15 }
104 #endif
105 
107 #ifndef PWM1_GPIOS
108 #define PWM1_GPIOS { }
109 #endif
110 
123 #ifndef SPI0_CTRL
124 #define SPI0_CTRL VSPI
125 #endif
126 #ifndef SPI0_SCK
127 #define SPI0_SCK GPIO18
128 #endif
129 #ifndef SPI0_MISO
130 #define SPI0_MISO GPIO19
131 #endif
132 #ifndef SPI0_MOSI
133 #define SPI0_MOSI GPIO23
134 #endif
135 #ifndef SPI0_CS0
136 #define SPI0_CS0 GPIO5
137 #endif
138 
151 #define UART0_TXD GPIO1
152 #define UART0_RXD GPIO3
154 #if FLASH_MODE_DOUT || FLASH_MODE_DIO || DOXYGEN
155 #ifndef UART1_TXD
156 #define UART1_TXD GPIO10
157 #endif
158 #ifndef UART1_RXD
159 #define UART1_RXD GPIO9
160 #endif
161 #else
162 #warning Configuration problem: Flash mode is qio or qout, \
163  GPIO9 and GPIO10 are not available for UART1 as configured
164 #endif
165 
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 */
176