periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2025 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 
9 #pragma once
10 
36 #include <stdint.h>
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
56 #ifndef ADC_GPIOS
57 # define ADC_GPIOS { GPIO1, GPIO2, GPIO3, GPIO4, GPIO5 }
58 #endif
72 #ifndef I2C0_SPEED
73 # define I2C0_SPEED I2C_SPEED_FAST
74 #endif
75 #ifndef I2C0_SCL
76 # define I2C0_SCL GPIO10
77 #endif
78 #ifndef I2C0_SDA
79 # define I2C0_SDA GPIO11
80 #endif
99 #ifndef PWM0_GPIOS
100 # define PWM0_GPIOS { GPIO2, GPIO12, GPIO22 }
101 #endif
102 
111 #ifndef PWM1_GPIOS
112 # define PWM1_GPIOS { GPIO1, GPIO3, GPIO5 }
113 #endif
114 
127 #ifndef SPI0_CTRL
128 # define SPI0_CTRL FSPI
129 #endif
130 #ifndef SPI0_SCK
131 # define SPI0_SCK GPIO4
132 #endif
133 #ifndef SPI0_MISO
134 # define SPI0_MISO GPIO5
135 #endif
136 #ifndef SPI0_MOSI
137 # define SPI0_MOSI GPIO0
138 #endif
139 #ifndef SPI0_CS0
140 # define SPI0_CS0 GPIO1
141 #endif
154 #define UART0_TXD GPIO24
155 #define UART0_RXD GPIO23
159 #ifdef __cplusplus
160 } /* end extern "C" */
161 #endif
162 
163 /* include common peripheral definitions as last step */
164 #include "periph_conf_common.h"
165