periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2025 Gunar Schorcht
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #pragma once
10 
26 #include <stdint.h>
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
40 #define ADC_GPIOS { GPIO2, GPIO4, GPIO35, GPIO34, GPIO36, GPIO39 }
41 
45 #define DAC_GPIOS { GPIO25, GPIO26 }
52 #ifndef I2C0_SPEED
53 # define I2C0_SPEED I2C_SPEED_FAST
54 #endif
55 
56 #define I2C0_SCL GPIO22
57 #define I2C0_SDA GPIO21
68 #define PWM0_GPIOS { GPIO25, GPIO16, GPIO27, GPIO13, GPIO2 }
69 
76 #define PWM1_GPIOS { GPIO5, GPIO23 }
89 #define SPI0_CTRL VSPI
90 #define SPI0_SCK GPIO18
91 #define SPI0_MISO GPIO19
92 #define SPI0_MOSI GPIO23
93 #define SPI0_CS0 GPIO5
104 #define UART0_TXD GPIO1
105 #define UART0_RXD GPIO3
107 #define UART1_TXD GPIO17
108 #define UART1_RXD GPIO16
111 #ifdef __cplusplus
112 } /* end extern "C" */
113 #endif
114 
115 /* include common peripheral definitions as last step */
116 #include "periph_conf_common.h"
117