Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
32
#ifndef PERIPH_CONF_H
33
#define PERIPH_CONF_H
34
35
#include <stdint.h>
36
37
#ifdef __cplusplus
38
extern
"C"
{
39
#endif
40
52
#ifndef I2C0_SPEED
53
#define I2C0_SPEED I2C_SPEED_FAST
54
#endif
55
#ifndef I2C0_SCL
56
#define I2C0_SCL GPIO40
57
#endif
58
#ifndef I2C0_SDA
59
#define I2C0_SDA GPIO41
60
#endif
76
#ifndef SPI0_CTRL
77
#define SPI0_CTRL SPI2_HOST
78
#endif
79
#ifndef SPI0_SCK
80
#define SPI0_SCK GPIO12
81
#endif
82
#ifndef SPI0_MISO
83
#define SPI0_MISO GPIO13
84
#endif
85
#ifndef SPI0_MOSI
86
#define SPI0_MOSI GPIO11
87
#endif
88
#ifndef SPI0_CS0
89
#define SPI0_CS0 GPIO10
90
#endif
91
92
#ifndef SPI1_CTRL
93
#define SPI1_CTRL SPI3_HOST
94
#endif
95
#ifndef SPI1_SCK
96
#define SPI1_SCK GPIO7
97
#endif
98
#ifndef SPI1_MISO
99
#define SPI1_MISO GPIO35
100
#endif
101
#ifndef SPI1_MOSI
102
#define SPI1_MOSI GPIO6
103
#endif
104
#ifndef SPI1_CS0
105
#define SPI1_CS0 GPIO5
106
#endif
116
#define UART0_TXD GPIO43
117
#define UART0_RXD GPIO44
121
#ifdef __cplusplus
122
}
/* end extern "C" */
123
#endif
124
125
/* include common peripheral definitions as last step */
126
#include "periph_conf_common.h"
127
128
#endif
/* PERIPH_CONF_H */
Generated on Sat Nov 23 2024 01:58:06 by
1.9.8