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) 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
9
#pragma once
10
23
#include <stdint.h>
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
40
#ifndef ADC_GPIOS
41
#define ADC_GPIOS { GPIO3, GPIO1, GPIO2, GPIO4, GPIO5, GPIO6, GPIO8, GPIO10 }
42
#endif
43
51
#ifndef DAC_GPIOS
52
#define DAC_GPIOS { GPIO17, GPIO18 }
53
#endif
67
#ifndef I2C0_SPEED
68
#define I2C0_SPEED I2C_SPEED_FAST
69
#endif
70
#ifndef I2C0_SCL
71
#define I2C0_SCL GPIO35
72
#endif
73
#ifndef I2C0_SDA
74
#define I2C0_SDA GPIO33
75
#endif
92
#ifndef PWM0_GPIOS
93
#define PWM0_GPIOS { GPIO13, GPIO14, GPIO15 }
94
#endif
107
#ifndef SPI0_CTRL
108
#define SPI0_CTRL FSPI
109
#endif
110
#ifndef SPI0_SCK
111
#define SPI0_SCK GPIO7
112
#endif
113
#ifndef SPI0_MISO
114
#define SPI0_MISO GPIO9
115
#endif
116
#ifndef SPI0_MOSI
117
#define SPI0_MOSI GPIO11
118
#endif
119
#ifndef SPI0_CS0
120
#define SPI0_CS0 GPIO12
121
#endif
134
#define UART0_TXD GPIO39
135
#define UART0_RXD GPIO37
139
#ifdef __cplusplus
140
}
/* end extern "C" */
141
#endif
142
143
/* include common peripheral definitions as last step */
144
#include "periph_conf_common.h"
145
Generated on Thu Jun 26 2025 14:14:44 by
1.9.1