board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 Gunar Schorcht
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 
32 #include <stdint.h>
33 
47 #define BTN0_PIN GPIO0
48 
55 #define BTN0_MODE GPIO_IN
56 
60 #ifndef BTN0_INT_FLANK
61 #define BTN0_INT_FLANK GPIO_FALLING
62 #endif
63 
67 #define BUTTON0_PIN BTN0_PIN
68 
76 #define LED0_PIN GPIO25
77 #define LED0_ACTIVE (1)
86 #define SX127X_PARAM_SPI (SPI_DEV(0))
87 #define SX127X_PARAM_SPI_NSS GPIO18
88 #define SX127X_PARAM_RESET GPIO14
89 #define SX127X_PARAM_DIO0 GPIO26
90 #define SX127X_PARAM_DIO1 GPIO_UNDEF /* GPIO35 has no pulldown, leads to init error */
91 #define SX127X_PARAM_DIO2 GPIO_UNDEF /* GPIO34 has no pulldown, leads to init error */
92 #define SX127X_PARAM_DIO3 GPIO_UNDEF
93 #define SX127X_PARAM_DIO_MULTI GPIO_UNDEF
96 /* include common board definitions as last step */
97 #include "board_common.h"
98 
99 #ifdef __cplusplus
100 extern "C" {
101 #endif
102 
103 #ifdef __cplusplus
104 } /* end extern "C" */
105 #endif
106