periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2025 David Picard
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 
30 #ifndef PERIPH_CONF_H
31 #define PERIPH_CONF_H
32 
33 #include <stdint.h>
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
54 #ifndef ADC_GPIOS
55 #define ADC_GPIOS { GPIO2, GPIO3, GPIO4 }
56 #endif
70 #ifndef I2C0_SPEED
71 #define I2C0_SPEED I2C_SPEED_FAST
72 #endif
73 #ifndef I2C0_SCL
74 #define I2C0_SCL GPIO7
75 #endif
76 #ifndef I2C0_SDA
77 #define I2C0_SDA GPIO6
78 #endif
100 #ifndef PWM0_GPIOS
101 #define PWM0_GPIOS { GPIO2, GPIO3, GPIO4, GPIO5 }
102 #endif
103 
118 #ifndef SPI0_CTRL
119 #define SPI0_CTRL FSPI
120 #endif
121 #ifndef SPI0_SCK
122 #define SPI0_SCK GPIO8
123 #endif
124 #ifndef SPI0_MISO
125 #define SPI0_MISO GPIO9
126 #endif
127 #ifndef SPI0_MOSI
128 #define SPI0_MOSI GPIO10
129 #endif
130 #ifndef SPI0_CS0
131 #define SPI0_CS0 GPIO5
132 #endif
145 #define UART0_TXD GPIO21
146 #define UART0_RXD GPIO20
150 #ifdef __cplusplus
151 } /* end extern "C" */
152 #endif
153 
154 /* include common peripheral definitions as last step */
155 #include "periph_conf_common.h"
156 
157 #endif /* PERIPH_CONF_H */