1 /**
2  * @file      example_options.h
3  *
4  * @brief     User options to be used in example applications
5  *
6  * The Clear BSD License
7  * Copyright Semtech Corporation 2021. All rights reserved.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted (subject to the limitations in the disclaimer
11  * below) provided that the following conditions are met:
12  *     * Redistributions of source code must retain the above copyright
13  *       notice, this list of conditions and the following disclaimer.
14  *     * Redistributions in binary form must reproduce the above copyright
15  *       notice, this list of conditions and the following disclaimer in the
16  *       documentation and/or other materials provided with the distribution.
17  *     * Neither the name of the Semtech corporation nor the
18  *       names of its contributors may be used to endorse or promote products
19  *       derived from this software without specific prior written permission.
20  *
21  * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY
22  * THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
23  * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT
24  * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
25  * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SEMTECH CORPORATION BE
26  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32  * POSSIBILITY OF SUCH DAMAGE.
33  */
34 
35 #ifndef EXAMPLE_OPTIONS_H
36 #define EXAMPLE_OPTIONS_H
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 /*
42  * -----------------------------------------------------------------------------
43  * --- DEPENDENCIES ------------------------------------------------------------
44  */
45 
46 #include <stdint.h>   // C99 types
47 #include <stdbool.h>  // bool type
48 
49 #include "smtc_modem_api.h"
50 
51 /*
52  * -----------------------------------------------------------------------------
53  * --- PUBLIC CONSTANTS --------------------------------------------------------
54  */
55 
56 /**
57  * @brief LoRaWAN User credentials
58  */
59 #define USER_LORAWAN_DEVICE_EUI                        \
60     {                                                  \
61         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 \
62     }
63 #define USER_LORAWAN_JOIN_EUI                          \
64     {                                                  \
65         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 \
66     }
67 #define USER_LORAWAN_GEN_APP_KEY                                                                       \
68     {                                                                                                  \
69         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 \
70     }
71 #define USER_LORAWAN_APP_KEY                                                                           \
72     {                                                                                                  \
73         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 \
74     }
75 
76 /**
77  * @brief Modem Region define
78  */
79 #ifndef MODEM_EXAMPLE_REGION
80 #if !defined( SX128X )
81 #define MODEM_EXAMPLE_REGION SMTC_MODEM_REGION_EU_868
82 #else
83 #define MODEM_EXAMPLE_REGION SMTC_MODEM_REGION_WW2G4
84 #endif
85 #endif  // MODEM_EXAMPLE_REGION
86 
87 #ifdef __cplusplus
88 }
89 #endif
90 
91 #endif  // EXAMPLE_OPTIONS_H
92 
93 /* --- EOF ------------------------------------------------------------------ */
94