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 
9 #pragma once
10 
32 #include <stdint.h>
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
53 #ifndef ADC_GPIOS
54 #define ADC_GPIOS { GPIO2, GPIO3, GPIO4 }
55 #endif
69 #ifndef I2C0_SPEED
70 #define I2C0_SPEED I2C_SPEED_FAST
71 #endif
72 #ifndef I2C0_SCL
73 #define I2C0_SCL GPIO7
74 #endif
75 #ifndef I2C0_SDA
76 #define I2C0_SDA GPIO6
77 #endif
99 #ifndef PWM0_GPIOS
100 #define PWM0_GPIOS { GPIO2, GPIO3, GPIO4 }
101 #endif
102 
117 #ifndef SPI0_CTRL
118 #define SPI0_CTRL FSPI
119 #endif
120 #ifndef SPI0_SCK
121 #define SPI0_SCK GPIO8
122 #endif
123 #ifndef SPI0_MISO
124 #define SPI0_MISO GPIO9
125 #endif
126 #ifndef SPI0_MOSI
127 #define SPI0_MOSI GPIO10
128 #endif
129 #ifndef SPI0_CS0
130 #define SPI0_CS0 GPIO5
131 #endif
144 #define UART0_TXD GPIO21
145 #define UART0_RXD GPIO20
149 #ifdef __cplusplus
150 } /* end extern "C" */
151 #endif
152 
153 /* include common peripheral definitions as last step */
154 #include "periph_conf_common.h"
155