Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
periph_conf.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2018 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
33
#include <stdint.h>
34
35
#ifdef __cplusplus
36
extern
"C"
{
37
#endif
38
51
#ifndef ADC_GPIOS
52
#define ADC_GPIOS { GPIO34, GPIO35, GPIO36, GPIO39 }
53
#endif
54
62
#ifndef DAC_GPIOS
63
#define DAC_GPIOS { GPIO25 }
64
#endif
78
#ifndef I2C0_SPEED
79
#define I2C0_SPEED I2C_SPEED_FAST
80
#endif
81
#ifndef I2C0_SCL
82
#define I2C0_SCL GPIO22
83
#endif
84
#ifndef I2C0_SDA
85
#define I2C0_SDA GPIO21
86
#endif
99
#ifndef PWM0_GPIOS
100
#define PWM0_GPIOS { GPIO2, GPIO0, GPIO4, GPIO15 }
101
#endif
102
116
#ifndef SPI0_CTRL
117
#define SPI0_CTRL VSPI
118
#endif
119
#ifndef SPI0_SCK
120
#define SPI0_SCK GPIO18
121
#endif
122
#ifndef SPI0_MISO
123
#define SPI0_MISO GPIO19
124
#endif
125
#ifndef SPI0_MOSI
126
#define SPI0_MOSI GPIO23
127
#endif
128
#ifndef SPI0_CS0
129
#define SPI0_CS0 GPIO5
130
#endif
144
#define UART0_TXD GPIO1
145
#define UART0_RXD GPIO3
147
#if CONFIG_FLASHMODE_DOUT || CONFIG_FLASHMODE_DIO || DOXYGEN
148
#ifndef UART1_TXD
149
#define UART1_TXD GPIO10
150
#endif
151
#ifndef UART1_RXD
152
#define UART1_RXD GPIO9
153
#endif
154
#else
155
#warning Configuration problem: Flash mode is qio or qout, \
156
GPIO9 and GPIO10 are not available for UART1 as configured
157
#endif
160
#ifdef __cplusplus
161
}
/* end extern "C" */
162
#endif
163
164
/* include common board definitions as last step */
165
#include "periph_conf_common.h"
166
Generated on Mon Jun 30 2025 18:46:45 by
1.9.1