rn2xx3_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Inria
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 
19 #ifndef RN2XX3_PARAMS_H
20 #define RN2XX3_PARAMS_H
21 
22 #include "rn2xx3.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 #ifndef RN2XX3_PARAM_UART
33 #define RN2XX3_PARAM_UART UART_DEV(1)
34 #endif
35 #ifndef RN2XX3_PARAM_BAUDRATE
36 #define RN2XX3_PARAM_BAUDRATE (57600U)
37 #endif
38 #ifndef RN2XX3_PARAM_PIN_RESET
39 #define RN2XX3_PARAM_PIN_RESET (GPIO_UNDEF)
40 #endif
41 
42 #ifndef RN2XX3_PARAMS
43 #define RN2XX3_PARAMS { .uart = RN2XX3_PARAM_UART, \
44  .baudrate = RN2XX3_PARAM_BAUDRATE, \
45  .pin_reset = RN2XX3_PARAM_PIN_RESET }
46 #endif
47 
53 {
54  RN2XX3_PARAMS
55 };
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #endif /* RN2XX3_PARAMS_H */
62 
rn2xx3_params
static const rn2xx3_params_t rn2xx3_params[]
RN2483/RN2903 configuration.
Definition: rn2xx3_params.h:52
rn2xx3_params_t
Configuration parameters for RN2483/RN2903 devices.
Definition: rn2xx3.h:138
rn2xx3.h
High-level driver for the RN2483/RN2903 LoRa modules.