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) 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
34
#include <stdint.h>
35
36
#ifdef __cplusplus
37
extern
"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 GPIO40
56
#endif
57
#ifndef I2C0_SDA
58
#define I2C0_SDA GPIO41
59
#endif
75
#ifndef SPI0_CTRL
76
#define SPI0_CTRL SPI2_HOST
77
#endif
78
#ifndef SPI0_SCK
79
#define SPI0_SCK GPIO12
80
#endif
81
#ifndef SPI0_MISO
82
#define SPI0_MISO GPIO13
83
#endif
84
#ifndef SPI0_MOSI
85
#define SPI0_MOSI GPIO11
86
#endif
87
#ifndef SPI0_CS0
88
#define SPI0_CS0 GPIO10
89
#endif
90
91
#ifndef SPI1_CTRL
92
#define SPI1_CTRL SPI3_HOST
93
#endif
94
#ifndef SPI1_SCK
95
#define SPI1_SCK GPIO7
96
#endif
97
#ifndef SPI1_MISO
98
#define SPI1_MISO GPIO35
99
#endif
100
#ifndef SPI1_MOSI
101
#define SPI1_MOSI GPIO6
102
#endif
103
#ifndef SPI1_CS0
104
#define SPI1_CS0 GPIO5
105
#endif
115
#define UART0_TXD GPIO43
116
#define UART0_RXD GPIO44
120
#ifdef __cplusplus
121
}
/* end extern "C" */
122
#endif
123
124
/* include common peripheral definitions as last step */
125
#include "periph_conf_common.h"
126
Generated on Sat Jun 28 2025 19:41:33 by
1.9.1