-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathboard-config.h
More file actions
152 lines (127 loc) · 4.76 KB
/
board-config.h
File metadata and controls
152 lines (127 loc) · 4.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/**
* @file board-config.h
*
* @brief board specific pinout
*
* The Clear BSD License
* Copyright Semtech Corporation 2024. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted (subject to the limitations in the disclaimer
* below) provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the Semtech corporation nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY
* THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT
* NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SEMTECH CORPORATION BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef BOARD_CONFIG_H
#define BOARD_CONFIG_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* -----------------------------------------------------------------------------
* --- DEPENDENCIES ------------------------------------------------------------
*/
#include "modem_e_system_types.h"
/*
* -----------------------------------------------------------------------------
* --- PUBLIC MACROS -----------------------------------------------------------
*/
/*
* -----------------------------------------------------------------------------
* --- PUBLIC CONSTANTS --------------------------------------------------------
*/
/*
* -----------------------------------------------------------------------------
* --- TCXO CONFIGURATION ------------------------------------------------------
*/
/**
* @brief Indicates whether the board includes a TCXO (Temperature Compensated Crystal Oscillator).
*
* Define this macro to 1 if the board has a TCXO connected and requires IO initialization.
* Defaults to 0 (no TCXO) if not defined elsewhere.
*/
#ifndef TCXO_ON_BOARD
#define TCXO_ON_BOARD 0
#endif
/**
* @brief Defines the supply voltage for the TCXO.
*
* Available values:
* - MODEM_E_SYSTEM_TCXO_CTRL_1_6V (0x00) - Supply voltage = 1.6V
* - MODEM_E_SYSTEM_TCXO_CTRL_1_7V (0x01) - Supply voltage = 1.7V
* - MODEM_E_SYSTEM_TCXO_CTRL_1_8V (0x02) - Supply voltage = 1.8V
* - MODEM_E_SYSTEM_TCXO_CTRL_2_2V (0x03) - Supply voltage = 2.2V
* - MODEM_E_SYSTEM_TCXO_CTRL_2_4V (0x04) - Supply voltage = 2.4V
* - MODEM_E_SYSTEM_TCXO_CTRL_2_7V (0x05) - Supply voltage = 2.7V
* - MODEM_E_SYSTEM_TCXO_CTRL_3_0V (0x06) - Supply voltage = 3.0V
* - MODEM_E_SYSTEM_TCXO_CTRL_3_3V (0x07) - Supply voltage = 3.3V
*/
#ifndef BOARD_TCXO_SUPPLY_VOLTAGE
#define BOARD_TCXO_SUPPLY_VOLTAGE MODEM_E_SYSTEM_TCXO_CTRL_1_8V
#endif
/**
* @brief Defines the time required for the TCXO to wakeup [ms].
*/
#ifndef BOARD_TCXO_WAKEUP_TIME
#define BOARD_TCXO_WAKEUP_TIME 8
#endif
/**
* @brief Board MCU pins definitions
*/
/* LR1110 */
#define RADIO_RESET PA_0
#define RADIO_MOSI PA_7
#define RADIO_MISO PA_6
#define RADIO_SCLK PA_5
#define RADIO_NSS PA_8
#define RADIO_BUSY PB_3
#define RADIO_EVENT PB_4
#define LNA_PON PB_0
/* Sensors */
#define I2C_SCL PB_8
#define I2C_SDA PB_9
#define ACC_INT1 PA_9
/* LED */
#define LED_RX PC_0
#define LED_TX PC_1
#define LED_SCAN PB_5
#define OSC_LSE_IN PC_14
#define OSC_LSE_OUT PC_15
#define OSC_HSE_IN PH_0
#define OSC_HSE_OUT PH_1
#define SWCLK PA_14
#define SWDAT PA_13
#define UART_TX PA_2
#define UART_RX PA_3
/*
* -----------------------------------------------------------------------------
* --- PUBLIC TYPES ------------------------------------------------------------
*/
/*
* -----------------------------------------------------------------------------
* --- PUBLIC FUNCTIONS PROTOTYPES ---------------------------------------------
*/
#ifdef __cplusplus
}
#endif
#endif // BOARD_CONFIG_H
/* --- EOF ------------------------------------------------------------------ */