Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019 Yegor Yefremov
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
9#pragma once
10
31
32#include <stdint.h>
33
38
42#if MODULE_ESP32_TTGO_T_BEAM_V1_0
43#define BTN0_PIN GPIO38
44#else
45#define BTN0_PIN GPIO39
46#endif
47
54#define BTN0_MODE GPIO_IN
55
59#define BUTTON0_PIN BTN0_PIN
61
65#ifndef BTN0_INT_FLANK
66#define BTN0_INT_FLANK GPIO_FALLING
67#endif
68
74#ifndef MODULE_ESP32_TTGO_T_BEAM_V1_0
75#define LED0_PIN GPIO14
76#define LED0_ACTIVE (1)
77#endif
79
86#define SX127X_PARAM_SPI_NSS GPIO18
87#define SX127X_PARAM_RESET GPIO23
88#define SX127X_PARAM_DIO0 GPIO26
89#define SX127X_PARAM_DIO1 GPIO_UNDEF /* Pin is not connected to the LoRa chip directly */
90#define SX127X_PARAM_DIO2 GPIO_UNDEF /* Pin is not connected to the LoRa chip directly */
91#define SX127X_PARAM_DIO3 GPIO_UNDEF
93
94/* include common board definitions as last step */
95#include "board_common.h"
96
97#ifdef __cplusplus
98extern "C" {
99#endif
100
101#ifdef __cplusplus
102} /* end extern "C" */
103#endif
104