periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2023 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 
34 #include <stdint.h>
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
55 #ifndef ADC_GPIOS
56 #define ADC_GPIOS { GPIO1, GPIO2, GPIO3, GPIO4, GPIO5, GPIO6, GPIO7, GPIO8, GPIO9, GPIO10 }
57 #endif
71 #ifndef I2C0_SPEED
72 #define I2C0_SPEED I2C_SPEED_FAST
73 #endif
74 #ifndef I2C0_SCL
75 #define I2C0_SCL GPIO9
76 #endif
77 #ifndef I2C0_SDA
78 #define I2C0_SDA GPIO8
79 #endif
100 #ifndef PWM0_GPIOS
101 #define PWM0_GPIOS { GPIO12, GPIO13, GPIO14, GPIO15, GPIO16 }
102 #endif
103 
108 #ifndef PWM1_GPIOS
109 #define PWM1_GPIOS { GPIO6, GPIO7, GPIO21, GPIO38 }
110 #endif
111 
124 #ifndef SPI0_CTRL
125 #define SPI0_CTRL FSPI
126 #endif
127 #ifndef SPI0_SCK
128 #define SPI0_SCK GPIO36
129 #endif
130 #ifndef SPI0_MISO
131 #define SPI0_MISO GPIO37
132 #endif
133 #ifndef SPI0_MOSI
134 #define SPI0_MOSI GPIO35
135 #endif
136 #ifndef SPI0_CS0
137 #define SPI0_CS0 GPIO34
138 #endif
151 #define UART0_TXD GPIO43
152 #define UART0_RXD GPIO44
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