Loading...
Searching...
No Matches
periph_conf.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022 Benjamin Valentin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
19
20#include <stdint.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
37#ifndef ADC_GPIOS
38#define ADC_GPIOS { GPIO3, GPIO1, GPIO2, GPIO4, GPIO5, GPIO6, GPIO8, GPIO10 }
39#endif
40
48#ifndef DAC_GPIOS
49#define DAC_GPIOS { GPIO17, GPIO18 }
50#endif
52
64#ifndef I2C0_SPEED
65#define I2C0_SPEED I2C_SPEED_FAST
66#endif
67#ifndef I2C0_SCL
68#define I2C0_SCL GPIO35
69#endif
70#ifndef I2C0_SDA
71#define I2C0_SDA GPIO33
72#endif
74
84
89#ifndef PWM0_GPIOS
90#define PWM0_GPIOS { GPIO13, GPIO14, GPIO15 }
91#endif
93
104#ifndef SPI0_CTRL
105#define SPI0_CTRL FSPI
106#endif
107#ifndef SPI0_SCK
108#define SPI0_SCK GPIO7
109#endif
110#ifndef SPI0_MISO
111#define SPI0_MISO GPIO9
112#endif
113#ifndef SPI0_MOSI
114#define SPI0_MOSI GPIO11
115#endif
116#ifndef SPI0_CS0
117#define SPI0_CS0 GPIO12
118#endif
120
131#define UART0_TXD GPIO39
132#define UART0_RXD GPIO37
133
135
136#ifdef __cplusplus
137} /* end extern "C" */
138#endif
139
140/* include common peripheral definitions as last step */
141#include "periph_conf_common.h"
142