Loading...
Searching...
No Matches
periph_conf.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023 Gunar Schorcht
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
30
31#include <stdint.h>
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
48#ifndef I2C0_SPEED
49#define I2C0_SPEED I2C_SPEED_FAST
50#endif
51#ifndef I2C0_SCL
52#define I2C0_SCL GPIO5
53#endif
54#ifndef I2C0_SDA
55#define I2C0_SDA GPIO6
56#endif
58
72#ifndef SPI0_CTRL
73#define SPI0_CTRL SPI2_HOST
74#endif
75#ifndef SPI0_SCK
76#define SPI0_SCK GPIO39
77#endif
78#ifndef SPI0_MISO
79#define SPI0_MISO GPIO38
80#endif
81#ifndef SPI0_MOSI
82#define SPI0_MOSI GPIO40
83#endif
84#ifndef SPI0_CS0
85#define SPI0_CS0 GPIO41
86#endif
88
96#define UART0_TXD GPIO43
97#define UART0_RXD GPIO44
98
100
101#ifdef __cplusplus
102} /* end extern "C" */
103#endif
104
105/* include common peripheral definitions as last step */
106#include "periph_conf_common.h"
107