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 GPIO5
57
#endif
58
#ifndef I2C0_SDA
59
#define I2C0_SDA GPIO6
60
#endif
76
#ifndef SPI0_CTRL
77
#define SPI0_CTRL SPI2_HOST
78
#endif
79
#ifndef SPI0_SCK
80
#define SPI0_SCK GPIO39
81
#endif
82
#ifndef SPI0_MISO
83
#define SPI0_MISO GPIO38
84
#endif
85
#ifndef SPI0_MOSI
86
#define SPI0_MOSI GPIO40
87
#endif
88
#ifndef SPI0_CS0
89
#define SPI0_CS0 GPIO41
90
#endif
100
#define UART0_TXD GPIO43
101
#define UART0_RXD GPIO44
105
#ifdef __cplusplus
106
}
/* end extern "C" */
107
#endif
108
109
/* include common peripheral definitions as last step */
110
#include "periph_conf_common.h"
111
112
#endif
/* PERIPH_CONF_H */
Generated on Sat Nov 23 2024 01:58:06 by
1.9.8