Loading...
Searching...
No Matches
periph_conf.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022 Gunar Schorcht
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
35
36#include <stdint.h>
37
38#ifdef __cplusplus
39extern "C" {
40#endif
41
56#ifndef ADC_GPIOS
57#define ADC_GPIOS { GPIO0, GPIO1, GPIO2, GPIO3, GPIO4, GPIO5 }
58#endif
60
72#ifndef I2C0_SPEED
73#define I2C0_SPEED I2C_SPEED_FAST
74#endif
75#ifndef I2C0_SCL
76#define I2C0_SCL GPIO4
77#endif
78#ifndef I2C0_SDA
79#define I2C0_SDA GPIO5
80#endif
82
96
101#ifndef PWM0_GPIOS
102# define PWM0_GPIOS { GPIO3, GPIO1 }
103#endif
104
111#if !defined(PWM1_GPIOS) && !defined(MODULE_PERIPH_SPI)
112# define PWM1_GPIOS { GPIO10, GPIO7 }
113#endif
114
116
127#ifndef SPI0_CTRL
128#define SPI0_CTRL FSPI
129#endif
130#ifndef SPI0_SCK
131#define SPI0_SCK GPIO6
132#endif
133#ifndef SPI0_MISO
134#define SPI0_MISO GPIO2
135#endif
136#ifndef SPI0_MOSI
137#define SPI0_MOSI GPIO7
138#endif
139#ifndef SPI0_CS0
140#define SPI0_CS0 GPIO10
141#endif
143
154#define UART0_TXD GPIO21
155#define UART0_RXD GPIO20
156
158
159#ifdef __cplusplus
160} /* end extern "C" */
161#endif
162
163/* include common peripheral definitions as last step */
164#include "periph_conf_common.h"
165