Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
board.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2018 Gunar Schorcht
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
33
#include <stdint.h>
34
43
#define BTN0_PIN GPIO34
44
51
#define BTN0_MODE GPIO_IN
52
56
#ifndef BTN0_INT_FLANK
57
#define BTN0_INT_FLANK GPIO_FALLING
58
#endif
59
63
#define BUTTON0_PIN BTN0_PIN
72
#if MODULE_OLIMEX_ESP32_GATEWAY
73
#define LED0_PIN GPIO33
74
#define LED0_ACTIVE (1)
75
#endif
90
#if (MODULE_SDCARD_SPI && MODULE_OLIMEX_ESP32_GATEWAY) || DOXYGEN
91
#define SDCARD_SPI_PARAM_SPI SPI_DEV(0)
92
#define SDCARD_SPI_PARAM_CS GPIO13
93
#define SDCARD_SPI_PARAM_CLK SPI0_SCK
94
#define SDCARD_SPI_PARAM_MOSI SPI0_MOSI
95
#define SDCARD_SPI_PARAM_MISO SPI0_MISO
96
#define SDCARD_SPI_PARAM_POWER GPIO_UNDEF
97
#endif
104
#if MODULE_ESP_ETH || DOXYGEN
105
#define EMAC_PHY_LAN8720 1
106
#define EMAC_PHY_ADDRESS 0
107
#define EMAC_PHY_SMI_MDC_PIN 23
108
#define EMAC_PHY_SMI_MDIO_PIN 18
109
#define EMAC_PHY_CLOCK_MODE ETH_CLOCK_GPIO0_IN
110
#define EMAC_PHY_POWER_PIN GPIO_UNDEF
111
#endif
114
/* include common board definitions as last step */
115
#include "board_common.h"
116
117
#ifdef __cplusplus
118
extern
"C"
{
119
#endif
120
121
#ifdef __cplusplus
122
}
/* end extern "C" */
123
#endif
124
Generated on Sat Sep 6 2025 20:14:01 by
1.9.1