Loading...
Searching...
No Matches
periph_conf.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2023 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
34#include <stdint.h>
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
51#ifndef I2C0_SPEED
52#define I2C0_SPEED I2C_SPEED_FAST
53#endif
54#ifndef I2C0_SCL
55#define I2C0_SCL GPIO5
56#endif
57#ifndef I2C0_SDA
58#define I2C0_SDA GPIO6
59#endif
61
75#ifndef SPI0_CTRL
76#define SPI0_CTRL SPI2_HOST
77#endif
78#ifndef SPI0_SCK
79#define SPI0_SCK GPIO39
80#endif
81#ifndef SPI0_MISO
82#define SPI0_MISO GPIO38
83#endif
84#ifndef SPI0_MOSI
85#define SPI0_MOSI GPIO40
86#endif
87#ifndef SPI0_CS0
88#define SPI0_CS0 GPIO41
89#endif
91
99#define UART0_TXD GPIO43
100#define UART0_RXD GPIO44
101
103
104#ifdef __cplusplus
105} /* end extern "C" */
106#endif
107
108/* include common peripheral definitions as last step */
109#include "periph_conf_common.h"
110