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
23
#include <stdint.h>
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
37
#define ADC_GPIOS { GPIO2, GPIO4, GPIO35, GPIO34, GPIO36, GPIO39 }
38
42
#define DAC_GPIOS { GPIO25, GPIO26 }
49
#ifndef I2C0_SPEED
50
# define I2C0_SPEED I2C_SPEED_FAST
51
#endif
52
53
#define I2C0_SCL GPIO22
54
#define I2C0_SDA GPIO21
65
#define PWM0_GPIOS { GPIO25, GPIO16, GPIO27, GPIO13, GPIO2 }
66
73
#define PWM1_GPIOS { GPIO5, GPIO23 }
86
#define SPI0_CTRL VSPI
87
#define SPI0_SCK GPIO18
88
#define SPI0_MISO GPIO19
89
#define SPI0_MOSI GPIO23
90
#define SPI0_CS0 GPIO5
101
#define UART0_TXD GPIO1
102
#define UART0_RXD GPIO3
104
#define UART1_TXD GPIO17
105
#define UART1_RXD GPIO16
108
#ifdef __cplusplus
109
}
/* end extern "C" */
110
#endif
111
112
/* include common peripheral definitions as last step */
113
#include "periph_conf_common.h"
114
Generated on Sat Sep 6 2025 20:14:01 by
1.9.1