periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 Gunar Schorcht
3  * Copyright (C) 2020 Google LLC
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
10 #pragma once
11 
21 #include <stdint.h>
22 
23 #ifdef __cplusplus
24  extern "C" {
25 #endif
26 
39 #ifndef ADC_GPIOS
40 #define ADC_GPIOS { GPIO34, GPIO35, GPIO36, GPIO39 }
41 #endif
50 #ifndef DAC_GPIOS
51 #define DAC_GPIOS { }
52 #endif
64 #ifndef I2C0_SPEED
65 #define I2C0_SPEED I2C_SPEED_FAST
66 #endif
67 #ifndef I2C0_SCL
68 #define I2C0_SCL GPIO33
69 #endif
70 #ifndef I2C0_SDA
71 #define I2C0_SDA GPIO32
72 #endif
84 #ifndef PWM0_GPIOS
85 #ifdef BOARD_ESP32_ETHERNET_KIT_V1_0
86 #define PWM0_GPIOS { GPIO4 }
87 #else
88 #define PWM0_GPIOS { GPIO2, GPIO4 }
89 #endif
90 #endif /* PWM0_GPIOS */
91 
103 #ifndef MODULE_ESP_JTAG
104 #define SPI0_CTRL HSPI
105 #define SPI0_SCK GPIO14
106 #define SPI0_MISO GPIO12
107 #define SPI0_MOSI GPIO13
108 #define SPI0_CS0 GPIO15
109 #endif /* MODULE_ESP_JTAG not defined */
122 #define UART0_TXD GPIO1
123 #define UART0_RXD GPIO3
126 #ifdef __cplusplus
127 } /* end extern "C" */
128 #endif
129 
130 /* include common board definitions as last step */
131 #include "periph_conf_common.h"
132