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) 2022 Benjamin Valentin
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
21
#ifndef PERIPH_CONF_H
22
#define PERIPH_CONF_H
23
24
#include <stdint.h>
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
41
#ifndef ADC_GPIOS
42
#define ADC_GPIOS { GPIO3, GPIO1, GPIO2, GPIO4, GPIO5, GPIO6, GPIO8, GPIO10 }
43
#endif
44
52
#ifndef DAC_GPIOS
53
#define DAC_GPIOS { GPIO17, GPIO18 }
54
#endif
68
#ifndef I2C0_SPEED
69
#define I2C0_SPEED I2C_SPEED_FAST
70
#endif
71
#ifndef I2C0_SCL
72
#define I2C0_SCL GPIO35
73
#endif
74
#ifndef I2C0_SDA
75
#define I2C0_SDA GPIO33
76
#endif
93
#ifndef PWM0_GPIOS
94
#define PWM0_GPIOS { GPIO13, GPIO14, GPIO15 }
95
#endif
108
#ifndef SPI0_CTRL
109
#define SPI0_CTRL FSPI
110
#endif
111
#ifndef SPI0_SCK
112
#define SPI0_SCK GPIO7
113
#endif
114
#ifndef SPI0_MISO
115
#define SPI0_MISO GPIO9
116
#endif
117
#ifndef SPI0_MOSI
118
#define SPI0_MOSI GPIO11
119
#endif
120
#ifndef SPI0_CS0
121
#define SPI0_CS0 GPIO12
122
#endif
135
#define UART0_TXD GPIO39
136
#define UART0_RXD GPIO37
140
#ifdef __cplusplus
141
}
/* end extern "C" */
142
#endif
143
144
/* include common peripheral definitions as last step */
145
#include "periph_conf_common.h"
146
147
#endif
/* PERIPH_CONF_H */
Generated on Sat Nov 16 2024 11:51:09 by
1.9.8