Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
33
#include <stdint.h>
34
35
#ifdef __cplusplus
36
extern
"C"
{
37
#endif
38
53
#ifndef ADC_GPIOS
54
# define ADC_GPIOS { GPIO1, GPIO2, GPIO3, GPIO4, GPIO5 }
55
#endif
69
#ifndef I2C0_SPEED
70
# define I2C0_SPEED I2C_SPEED_FAST
71
#endif
72
#ifndef I2C0_SCL
73
# define I2C0_SCL GPIO10
74
#endif
75
#ifndef I2C0_SDA
76
# define I2C0_SDA GPIO11
77
#endif
96
#ifndef PWM0_GPIOS
97
# define PWM0_GPIOS { GPIO2, GPIO12, GPIO22 }
98
#endif
99
108
#ifndef PWM1_GPIOS
109
# define PWM1_GPIOS { GPIO1, GPIO3, GPIO5 }
110
#endif
111
124
#ifndef SPI0_CTRL
125
# define SPI0_CTRL FSPI
126
#endif
127
#ifndef SPI0_SCK
128
# define SPI0_SCK GPIO4
129
#endif
130
#ifndef SPI0_MISO
131
# define SPI0_MISO GPIO5
132
#endif
133
#ifndef SPI0_MOSI
134
# define SPI0_MOSI GPIO0
135
#endif
136
#ifndef SPI0_CS0
137
# define SPI0_CS0 GPIO1
138
#endif
151
#define UART0_TXD GPIO24
152
#define UART0_RXD GPIO23
156
#ifdef __cplusplus
157
}
/* end extern "C" */
158
#endif
159
160
/* include common peripheral definitions as last step */
161
#include "periph_conf_common.h"
162
Generated on Sat Sep 6 2025 20:14:01 by
1.9.1