Loading...
Searching...
No Matches
board.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
14
15#include <stdint.h>
16
17/* include common board definitions as last step */
18#include "board_common.h"
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24#if !MODULE_ESP_ETH || DOXYGEN
35#define BTN0_PIN GPIO0
36
42#define BTN0_MODE GPIO_IN
43
47#ifndef BTN0_INT_FLANK
48#define BTN0_INT_FLANK GPIO_FALLING
49#endif
50
54#define BUTTON0_PIN BTN0_PIN
56#endif /* !MODULE_ESP_ETH || DOXYGEN */
57
62#define EMAC_PHY_IP101G 1
63#define EMAC_PHY_ADDRESS 1
64#define EMAC_PHY_SMI_MDC_PIN 23
65#define EMAC_PHY_SMI_MDIO_PIN 18
66#define EMAC_PHY_CLOCK_MODE ETH_CLOCK_GPIO0_IN
67#define EMAC_PHY_POWER_PIN GPIO5
69
70#ifdef __cplusplus
71} /* end extern "C" */
72#endif
73