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) 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
19
#ifndef PERIPH_CONF_H
20
#define PERIPH_CONF_H
21
22
#include <stdint.h>
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
40
#ifndef ADC_GPIOS
41
#define ADC_GPIOS { GPIO34, GPIO35, GPIO36, GPIO39 }
42
#endif
51
#ifndef DAC_GPIOS
52
#define DAC_GPIOS { }
53
#endif
65
#ifndef I2C0_SPEED
66
#define I2C0_SPEED I2C_SPEED_FAST
67
#endif
68
#ifndef I2C0_SCL
69
#define I2C0_SCL GPIO33
70
#endif
71
#ifndef I2C0_SDA
72
#define I2C0_SDA GPIO32
73
#endif
85
#ifndef PWM0_GPIOS
86
#ifdef BOARD_ESP32_ETHERNET_KIT_V1_0
87
#define PWM0_GPIOS { GPIO4 }
88
#else
89
#define PWM0_GPIOS { GPIO2, GPIO4 }
90
#endif
91
#endif
/* PWM0_GPIOS */
92
104
#ifndef MODULE_ESP_JTAG
105
#define SPI0_CTRL HSPI
106
#define SPI0_SCK GPIO14
107
#define SPI0_MISO GPIO12
108
#define SPI0_MOSI GPIO13
109
#define SPI0_CS0 GPIO15
110
#endif
/* MODULE_ESP_JTAG not defined */
123
#define UART0_TXD GPIO1
124
#define UART0_RXD GPIO3
127
#ifdef __cplusplus
128
}
/* end extern "C" */
129
#endif
130
131
/* include common board definitions as last step */
132
#include "periph_conf_common.h"
133
134
#endif
/* PERIPH_CONF_H */
Generated on Sat Nov 23 2024 01:58:06 by
1.9.8