Loading...
Searching...
No Matches
periph_conf.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025 David Picard
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
28
29#include <stdint.h>
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
50#ifndef ADC_GPIOS
51#define ADC_GPIOS { GPIO2, GPIO3, GPIO4 }
52#endif
54
66#ifndef I2C0_SPEED
67#define I2C0_SPEED I2C_SPEED_FAST
68#endif
69#ifndef I2C0_SCL
70#define I2C0_SCL GPIO7
71#endif
72#ifndef I2C0_SDA
73#define I2C0_SDA GPIO6
74#endif
76
91
96#ifndef PWM0_GPIOS
97#define PWM0_GPIOS { GPIO2, GPIO3, GPIO4 }
98#endif
99
101
114#ifndef SPI0_CTRL
115#define SPI0_CTRL FSPI
116#endif
117#ifndef SPI0_SCK
118#define SPI0_SCK GPIO8
119#endif
120#ifndef SPI0_MISO
121#define SPI0_MISO GPIO9
122#endif
123#ifndef SPI0_MOSI
124#define SPI0_MOSI GPIO10
125#endif
126#ifndef SPI0_CS0
127#define SPI0_CS0 GPIO5
128#endif
130
141#define UART0_TXD GPIO21
142#define UART0_RXD GPIO20
143
145
146#ifdef __cplusplus
147} /* end extern "C" */
148#endif
149
150/* include common peripheral definitions as last step */
151#include "periph_conf_common.h"
152