Loading...
Searching...
No Matches
periph_conf.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Gunar Schorcht
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
26
27#include <stdint.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
52#ifndef ADC_GPIOS
53# define ADC_GPIOS { GPIO14, GPIO15, GPIO16, GPIO17, GPIO18, GPIO1, \
54 GPIO2, GPIO3, GPIO4, GPIO5, GPIO6, GPIO7, \
55 GPIO8, GPIO9, GPIO10, GPIO11, GPIO12, GPIO13 }
56#endif
58
72#ifndef I2C0_SPEED
73# define I2C0_SPEED I2C_SPEED_FAST
74#endif
75#ifndef I2C0_SCL
76# define I2C0_SCL GPIO48
77#endif
78#ifndef I2C0_SDA
79# define I2C0_SDA GPIO47
80#endif
82
95
100#ifndef PWM0_GPIOS
101# define PWM0_GPIOS { GPIO3, GPIO5, GPIO6, GPIO9 }
102#endif
103
108#ifndef PWM1_GPIOS
109# define PWM1_GPIOS { GPIO10, GPIO11 }
110#endif
111
113
127#ifndef SPI0_CTRL
128# define SPI0_CTRL FSPI
129#endif
130#ifndef SPI0_SCK
131# define SPI0_SCK GPIO39
132#endif
133#ifndef SPI0_MISO
134# define SPI0_MISO GPIO21
135#endif
136#ifndef SPI0_MOSI
137# define SPI0_MOSI GPIO42
138#endif
139#ifndef SPI0_CS0
140# define SPI0_CS0 GPIO45
141#endif
142
143#ifndef SPI1_CTRL
144# define SPI1_CTRL SPI3_HOST
145#endif
146#ifndef SPI1_SCK
147# define SPI1_SCK GPIO13
148#endif
149#ifndef SPI1_MISO
150# define SPI1_MISO GPIO12
151#endif
152#ifndef SPI1_MOSI
153# define SPI1_MOSI GPIO11
154#endif
155#ifndef SPI1_CS0
156# define SPI1_CS0 GPIO10
157#endif
159
170#define UART0_TXD GPIO43
171#define UART0_RXD GPIO44
172
173#ifndef UART1_TXD
174# define UART1_TXD GPIO40
175#endif
176#ifndef UART1_RXD
177# define UART1_RXD GPIO41
178#endif
180
181#ifdef __cplusplus
182}
183#endif
184
185/* include common peripheral definitions as last step */
186#include "periph_conf_common.h"
187