periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2022 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 
37 #ifndef PERIPH_CONF_H
38 #define PERIPH_CONF_H
39 
40 #include <stdint.h>
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
60 #ifndef ADC_GPIOS
61 #define ADC_GPIOS { GPIO0, GPIO1, GPIO2, GPIO3, GPIO4, GPIO5 }
62 #endif
76 #ifndef I2C0_SPEED
77 #define I2C0_SPEED I2C_SPEED_FAST
78 #endif
79 #ifndef I2C0_SCL
80 #define I2C0_SCL GPIO4
81 #endif
82 #ifndef I2C0_SDA
83 #define I2C0_SDA GPIO5
84 #endif
105 #ifndef PWM0_GPIOS
106 #define PWM0_GPIOS { GPIO3, GPIO4 }
107 #endif
108 
121 #ifndef SPI0_CTRL
122 #define SPI0_CTRL FSPI
123 #endif
124 #ifndef SPI0_SCK
125 #define SPI0_SCK GPIO6
126 #endif
127 #ifndef SPI0_MISO
128 #define SPI0_MISO GPIO2
129 #endif
130 #ifndef SPI0_MOSI
131 #define SPI0_MOSI GPIO7
132 #endif
133 #ifndef SPI0_CS0
134 #define SPI0_CS0 GPIO10
135 #endif
148 #define UART0_TXD GPIO21
149 #define UART0_RXD GPIO20
153 #ifdef __cplusplus
154 } /* end extern "C" */
155 #endif
156 
157 /* include common peripheral definitions as last step */
158 #include "periph_conf_common.h"
159 
160 #endif /* PERIPH_CONF_H */