Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
periph_conf.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2025 Gunar Schorcht
3
* SPDX-FileCopyrightText: 2026 Stepan Konoplev
4
* SPDX-License-Identifier: LGPL-2.1-only
5
*/
6
7
#pragma once
8
18
19
#include <stdint.h>
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
29
#ifndef I2C0_SDA
30
# define I2C0_SDA GPIO22
31
#endif
32
33
#ifndef I2C0_SCL
34
# define I2C0_SCL GPIO23
35
#endif
36
37
#ifndef I2C0_SPEED
38
# define I2C0_SPEED I2C_SPEED_FAST
39
#endif
41
46
#ifndef SPI0_CTRL
47
# define SPI0_CTRL FSPI
48
#endif
49
50
#ifndef SPI0_SCK
51
# define SPI0_SCK GPIO19
52
#endif
53
54
#ifndef SPI0_MOSI
55
# define SPI0_MOSI GPIO18
56
#endif
57
58
#ifndef SPI0_MISO
59
# define SPI0_MISO GPIO20
60
#endif
61
62
#ifndef SPI0_CS0
63
# define SPI0_CS0 GPIO21
64
#endif
66
78
#ifndef ADC_GPIOS
79
# define ADC_GPIOS { GPIO0, GPIO1, GPIO2 }
80
#endif
82
99
#ifndef PWM0_GPIOS
100
# define PWM0_GPIOS { GPIO0, GPIO1, GPIO2 }
101
#endif
103
113
#define UART0_TXD GPIO16
114
#define UART0_RXD GPIO17
116
117
/* Include common peripheral definitions */
118
#include "periph_conf_common.h"
119
120
#ifdef __cplusplus
121
}
122
#endif
123
Generated on Mon Jul 13 2026 17:05:03 by
1.13.2