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-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
22
23
#include <stdint.h>
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
33
37
#define ADC_GPIOS { GPIO2, GPIO4, GPIO35, GPIO34, GPIO36, GPIO39 }
38
42
#define DAC_GPIOS { GPIO25, GPIO26 }
44
49
#ifndef I2C0_SPEED
50
# define I2C0_SPEED I2C_SPEED_FAST
51
#endif
52
53
#define I2C0_SCL GPIO22
54
#define I2C0_SDA GPIO21
56
61
69
#define PWM0_GPIOS { GPIO25, GPIO16, GPIO27, GPIO13 }
70
77
#define PWM1_GPIOS { GPIO5, GPIO23 }
79
90
#define SPI0_CTRL VSPI
91
#define SPI0_SCK GPIO18
92
#define SPI0_MISO GPIO19
93
#define SPI0_MOSI GPIO23
94
#define SPI0_CS0 GPIO5
96
105
#define UART0_TXD GPIO1
106
#define UART0_RXD GPIO3
107
108
#define UART1_TXD GPIO17
109
#define UART1_RXD GPIO16
111
112
#ifdef __cplusplus
113
}
/* end extern "C" */
114
#endif
115
116
/* include common peripheral definitions as last step */
117
#include "periph_conf_common.h"
118
Generated on Wed Nov 18 2026 17:41:50 by
1.13.2