periph_conf.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2023 Gunar Schorcht
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
31 #include <stdint.h>
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
52 #ifndef ADC_GPIOS
53 #define ADC_GPIOS { GPIO1, GPIO2, GPIO3, GPIO4, GPIO5, GPIO6, GPIO7, GPIO8, GPIO9, GPIO10 }
54 #endif
68 #ifndef I2C0_SPEED
69 #define I2C0_SPEED I2C_SPEED_FAST
70 #endif
71 #ifndef I2C0_SCL
72 #define I2C0_SCL GPIO9
73 #endif
74 #ifndef I2C0_SDA
75 #define I2C0_SDA GPIO8
76 #endif
97 #ifndef PWM0_GPIOS
98 #define PWM0_GPIOS { GPIO12, GPIO13, GPIO14, GPIO15, GPIO16 }
99 #endif
100 
105 #ifndef PWM1_GPIOS
106 #define PWM1_GPIOS { GPIO6, GPIO7, GPIO21, GPIO38 }
107 #endif
108 
121 #ifndef SPI0_CTRL
122 #define SPI0_CTRL FSPI
123 #endif
124 #ifndef SPI0_SCK
125 #define SPI0_SCK GPIO36
126 #endif
127 #ifndef SPI0_MISO
128 #define SPI0_MISO GPIO37
129 #endif
130 #ifndef SPI0_MOSI
131 #define SPI0_MOSI GPIO35
132 #endif
133 #ifndef SPI0_CS0
134 #define SPI0_CS0 GPIO34
135 #endif
148 #define UART0_TXD GPIO43
149 #define UART0_RXD GPIO44
153 #ifdef __cplusplus
154 } /* end extern "C" */
155 #endif
156 
157 /* include common peripheral definitions as last step */
158 #include "periph_conf_common.h"
159