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
35
36#include <stdint.h>
37
38#ifdef __cplusplus
39extern "C" {
40#endif
41
56#ifndef ADC_GPIOS
57# define ADC_GPIOS { GPIO0, GPIO1, GPIO2, GPIO3, GPIO4, GPIO5, GPIO6 }
58#endif
60
72#ifndef I2C0_SPEED
73# define I2C0_SPEED I2C_SPEED_FAST
74#endif
75#ifndef I2C0_SCL
76# define I2C0_SCL GPIO5
77#endif
78#ifndef I2C0_SDA
79# define I2C0_SDA GPIO4
80#endif
82
90
99#ifndef PWM0_GPIOS
100# define PWM0_GPIOS { GPIO19, GPIO20, GPIO21 }
101#endif
102
111#ifndef PWM1_GPIOS
112# define PWM1_GPIOS { GPIO22, GPIO18, GPIO7 }
113#endif
115
126#ifndef SPI0_CTRL
127# define SPI0_CTRL FSPI
128#endif
129#ifndef SPI0_SCK
130# define SPI0_SCK GPIO6
131#endif
132#ifndef SPI0_MISO
133# define SPI0_MISO GPIO2
134#endif
135#ifndef SPI0_MOSI
136# define SPI0_MOSI GPIO7
137#endif
138#ifndef SPI0_CS0
139# define SPI0_CS0 GPIO18
140#endif
142
153#define UART0_TXD GPIO16
154#define UART0_RXD GPIO17
155
157
158#ifdef __cplusplus
159} /* end extern "C" */
160#endif
161
162/* include common peripheral definitions as last step */
163#include "periph_conf_common.h"
164