Loading...
Searching...
No Matches
periph_conf.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025 Gunar Schorcht
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
30
31#include <stdint.h>
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
56#ifndef ADC_GPIOS
57# if !MODULE_PERIPH_I2C
58# define ADC_GPIOS { GPIO1, GPIO2, GPIO3, GPIO4, GPIO11, GPIO12, GPIO13, GPIO14 }
59# else /* !MODULE_PERIPH_I2C */
60# define ADC_GPIOS { GPIO1, GPIO2, GPIO3, GPIO4 }
61# endif /* !MODULE_PERIPH_I2C */
62#endif
64
76#ifndef I2C0_SPEED
77# define I2C0_SPEED I2C_SPEED_FAST
78#endif
79
80#ifndef I2C0_SCL
81# define I2C0_SCL GPIO12
82#endif
83
84#ifndef I2C0_SDA
85# define I2C0_SDA GPIO11
86#endif
88
102
111#ifndef PWM0_GPIOS
112# define PWM0_GPIOS { GPIO6, GPIO8, GPIO9, GPIO18 }
113#endif
114
125#ifndef PWM1_GPIOS
126# define PWM1_GPIOS { GPIO46, GPIO0, GPIO45 }
127#endif
128
130
141#ifndef SPI0_CTRL
142# define SPI0_CTRL FSPI
143#endif
144
145#ifndef SPI0_SCK
146# define SPI0_SCK GPIO48
147#endif
148
149#ifndef SPI0_MISO
150# define SPI0_MISO GPIO47
151#endif
152
153#ifndef SPI0_MOSI
154# define SPI0_MOSI GPIO38
155#endif
156
157#ifndef SPI0_CS0
158# define SPI0_CS0 GPIO21
159#endif
161
173#define UART0_TXD GPIO43
174#define UART0_RXD GPIO44
175
177
178#ifdef __cplusplus
179} /* end extern "C" */
180#endif
181
182/* include common peripheral definitions as last step */
183#include "periph_conf_common.h"
184