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
19
20#include <stdint.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
42#ifndef ADC_GPIOS
43# define ADC_GPIOS { GPIO17, GPIO18, GPIO1, GPIO2, GPIO3, GPIO4 }
44#endif
45
55#ifndef DAC_GPIOS
56# define DAC_GPIOS { GPIO17, GPIO18 }
57#endif
59
72#ifndef I2C0_SPEED
73# define I2C0_SPEED I2C_SPEED_FAST
74#endif
75#ifndef I2C0_SCL
76# define I2C0_SCL GPIO34
77#endif
78#ifndef I2C0_SDA
79# define I2C0_SDA GPIO33
80#endif
82
95
100#ifndef PWM0_GPIOS
101# define PWM0_GPIOS { GPIO8, GPIO10, GPIO11, GPIO14 }
102#endif
103
108#ifndef PWM1_GPIOS
109# define PWM1_GPIOS { GPIO15, GPIO16 }
110#endif
112
131#ifndef SPI0_CTRL
132# define SPI0_CTRL FSPI
133#endif
134#ifndef SPI0_SCK
135# define SPI0_SCK GPIO36
136#endif
137#ifndef SPI0_MISO
138# define SPI0_MISO GPIO37
139#endif
140#ifndef SPI0_MOSI
141# define SPI0_MOSI GPIO35
142#endif
143#ifndef SPI0_CS0
144# define SPI0_CS0 GPIO15
145#endif
146
147#ifndef SPI1_CTRL
148# define SPI1_CTRL HSPI
149#endif
150#ifndef SPI1_SCK
151# define SPI1_SCK GPIO42
152#endif
153#ifndef SPI1_MISO
154# define SPI1_MISO GPIO21
155#endif
156#ifndef SPI1_MOSI
157# define SPI1_MOSI GPIO16
158#endif
159#ifndef SPI1_CS0
160# define SPI1_CS0 GPIO15
161#endif
163
178#ifndef UART1_TXD
179# define UART1_TXD GPIO6
180#endif
181#ifndef UART1_RXD
182# define UART1_RXD GPIO5
183#endif
185
186#ifdef __cplusplus
187}
188#endif
189
190/* include common peripheral definitions as last step */
191#include "periph_conf_common.h"
192