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
38extern "C" {
39#endif
40
56#ifndef ADC_GPIOS
57#define ADC_GPIOS { GPIO1, GPIO2, GPIO3, GPIO4, GPIO5, GPIO6, GPIO7, GPIO8, GPIO9, GPIO10 }
58#endif
72#ifndef I2C0_SPEED
73#define I2C0_SPEED I2C_SPEED_FAST
74#endif
75#ifndef I2C0_SCL
76#define I2C0_SCL GPIO9
77#endif
78#ifndef I2C0_SDA
79#define I2C0_SDA GPIO8
80#endif
101#ifndef PWM0_GPIOS
102#define PWM0_GPIOS { GPIO12, GPIO13, GPIO14, GPIO15, GPIO16 }
103#endif
104
109#ifndef PWM1_GPIOS
110#define PWM1_GPIOS { GPIO6, GPIO7, GPIO21, GPIO38 }
111#endif
112
125#ifndef SPI0_CTRL
126#define SPI0_CTRL FSPI
127#endif
128#ifndef SPI0_SCK
129#define SPI0_SCK GPIO36
130#endif
131#ifndef SPI0_MISO
132#define SPI0_MISO GPIO37
133#endif
134#ifndef SPI0_MOSI
135#define SPI0_MOSI GPIO35
136#endif
137#ifndef SPI0_CS0
138#define SPI0_CS0 GPIO34
139#endif
152#define UART0_TXD GPIO43
153#define UART0_RXD GPIO44
157#ifdef __cplusplus
158} /* end extern "C" */
159#endif
160
161/* include common peripheral definitions as last step */
162#include "periph_conf_common.h"
163
164#endif /* PERIPH_CONF_H */