Loading...
Searching...
No Matches
periph_conf.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023 Gunar Schorcht
3 * SPDX-FileCopyrightText: 2026 Technische Universität Hamburg
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
20
21#include <stdint.h>
22
23#include "board.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
38#ifndef ADC_GPIOS
39# define ADC_GPIOS { GPIO4, GPIO12 }
40#endif
42
56#ifndef SPI0_CTRL
57# define SPI0_CTRL SPI2_HOST
58#endif
59#ifndef SPI0_SCK
60# define SPI0_SCK GPIO10
61#endif
62#ifndef SPI0_MOSI
63# define SPI0_MOSI GPIO11
64#endif
65#ifndef SPI0_MISO
66# define SPI0_MISO GPIO_UNDEF
67#endif
68#ifndef SPI0_CS0
69# define SPI0_CS0 GPIO9
70#endif
72
86#ifndef I2C0_SPEED
87# define I2C0_SPEED I2C_SPEED_FAST
88#endif
89#ifndef I2C0_SCL
90# define I2C0_SCL GPIO7
91#endif
92#ifndef I2C0_SDA
93# define I2C0_SDA GPIO6
94#endif
95#ifndef I2C1_SPEED
96# define I2C1_SPEED I2C_SPEED_FAST
97#endif
98#ifndef I2C1_SCL
99# define I2C1_SCL GPIO39
100#endif
101#ifndef I2C1_SDA
102# define I2C1_SDA GPIO38
103#endif
105
111#ifndef PWM0_GPIOS
112# define PWM0_GPIOS { LED0_PIN }
113#endif
114
115#ifdef __cplusplus
116}
117#endif
118
119/* include common peripheral definitions as last step */
120#include "periph_conf_common.h"
121
Board specific definitions for the Elecrow CrowPanel ESP32-S3 1.28-inch rotary round display board (T...