board.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2019 Gunar Schorcht
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
29 #include <stdint.h>
30 
44 #define BTN0_PIN GPIO0
45 
52 #define BTN0_MODE GPIO_IN
53 
57 #ifndef BTN0_INT_FLANK
58 #define BTN0_INT_FLANK GPIO_FALLING
59 #endif
60 
64 #define BUTTON0_PIN BTN0_PIN
65 
73 #define LED0_PIN GPIO25
74 #define LED0_ACTIVE (1)
83 #define SX127X_PARAM_SPI (SPI_DEV(0))
84 #define SX127X_PARAM_SPI_NSS GPIO18
85 #define SX127X_PARAM_RESET GPIO14
86 #define SX127X_PARAM_DIO0 GPIO26
87 #define SX127X_PARAM_DIO1 GPIO_UNDEF /* GPIO35 has no pulldown, leads to init error */
88 #define SX127X_PARAM_DIO2 GPIO_UNDEF /* GPIO34 has no pulldown, leads to init error */
89 #define SX127X_PARAM_DIO3 GPIO_UNDEF
90 #define SX127X_PARAM_DIO_MULTI GPIO_UNDEF
93 /* include common board definitions as last step */
94 #include "board_common.h"
95 
96 #ifdef __cplusplus
97 extern "C" {
98 #endif
99 
100 #ifdef __cplusplus
101 } /* end extern "C" */
102 #endif
103