Loading...
Searching...
No Matches
periph_conf.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 Gunar Schorcht
3 * SPDX-FileCopyrightText: 2020 Google LLC
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
17
18#include <stdint.h>
19
20#ifdef __cplusplus
21 extern "C" {
22#endif
23
28
36#ifndef ADC_GPIOS
37#define ADC_GPIOS { GPIO34, GPIO35, GPIO36, GPIO39 }
38#endif
40
47#ifndef DAC_GPIOS
48#define DAC_GPIOS { }
49#endif
51
61#ifndef I2C0_SPEED
62#define I2C0_SPEED I2C_SPEED_FAST
63#endif
64#ifndef I2C0_SCL
65#define I2C0_SCL GPIO33
66#endif
67#ifndef I2C0_SDA
68#define I2C0_SDA GPIO32
69#endif
71
81#ifndef PWM0_GPIOS
82#ifdef BOARD_ESP32_ETHERNET_KIT_V1_0
83#define PWM0_GPIOS { GPIO4 }
84#else
85#define PWM0_GPIOS { GPIO2, GPIO4 }
86#endif
87#endif /* PWM0_GPIOS */
88
90
100#ifndef MODULE_ESP_JTAG
101#define SPI0_CTRL HSPI
102#define SPI0_SCK GPIO14
103#define SPI0_MISO GPIO12
104#define SPI0_MOSI GPIO13
105#define SPI0_CS0 GPIO15
106#endif /* MODULE_ESP_JTAG not defined */
108
119#define UART0_TXD GPIO1
120#define UART0_RXD GPIO3
122
123#ifdef __cplusplus
124} /* end extern "C" */
125#endif
126
127/* include common board definitions as last step */
128#include "periph_conf_common.h"
129