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