periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2022 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 
39 #include <stdint.h>
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
59 #ifndef ADC_GPIOS
60 #define ADC_GPIOS { GPIO0, GPIO1, GPIO2, GPIO3, GPIO4, GPIO5 }
61 #endif
75 #ifndef I2C0_SPEED
76 #define I2C0_SPEED I2C_SPEED_FAST
77 #endif
78 #ifndef I2C0_SCL
79 #define I2C0_SCL GPIO4
80 #endif
81 #ifndef I2C0_SDA
82 #define I2C0_SDA GPIO5
83 #endif
104 #ifndef PWM0_GPIOS
105 # define PWM0_GPIOS { GPIO3, GPIO1 }
106 #endif
107 
114 #if !defined(PWM1_GPIOS) && !defined(MODULE_PERIPH_SPI)
115 # define PWM1_GPIOS { GPIO10, GPIO7 }
116 #endif
117 
130 #ifndef SPI0_CTRL
131 #define SPI0_CTRL FSPI
132 #endif
133 #ifndef SPI0_SCK
134 #define SPI0_SCK GPIO6
135 #endif
136 #ifndef SPI0_MISO
137 #define SPI0_MISO GPIO2
138 #endif
139 #ifndef SPI0_MOSI
140 #define SPI0_MOSI GPIO7
141 #endif
142 #ifndef SPI0_CS0
143 #define SPI0_CS0 GPIO10
144 #endif
157 #define UART0_TXD GPIO21
158 #define UART0_RXD GPIO20
162 #ifdef __cplusplus
163 } /* end extern "C" */
164 #endif
165 
166 /* include common peripheral definitions as last step */
167 #include "periph_conf_common.h"
168