-
Notifications
You must be signed in to change notification settings - Fork 0
/
Kconfig
197 lines (160 loc) · 4.48 KB
/
Kconfig
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
menu "LoRa Configuration"
menu "Settings"
config LORA_FREQ
int "Frequency"
default 433000000
help
Frequency in Hz.
config LORA_SYNC_WORD
hex "Sync word"
default 0xFD
help
Network ID.
config LORA_PREAMBLE_LEN
int "Preamble length"
default 255
help
Preamble length.
config LORA_TX_POWER
int "TX power"
range 2 17
default 17
help
TX power.
config LORA_INIT_TIMEOUT
int "Init timeout"
range 100 255
default 100
help
Init timeout.
config LORA_RST_GPIO
int "RST GPIO"
range 0 35
default 27
help
RST pin.
endmenu # Settings
menu "SPI Config"
choice LORA_SPI_SEL
bool "SPI Select"
default LORA_HSPI_ON
help
SPI select.
config LORA_HSPI_ON
bool "HSPI"
config LORA_VSPI_ON
bool "VSPI"
endchoice
config LORA_MISO_GPIO
int "MISO GPIO"
range 0 35
default 12
help
MISO pin.
config LORA_MOSI_GPIO
int "MOSI GPIO"
range 0 35
default 13
help
MOSI pin.
config LORA_SCK_GPIO
int "SCK GPIO"
range 0 35
default 14
help
SCK pin.
config LORA_CS_ON_GPIO
bool "Enable CS GPIO"
default n
help
Enable CS pin.
config LORA_CS_GPIO
int "CS GPIO"
depends on LORA_CS_ON_GPIO
range 0 35
default 15
help
CS pin.
endmenu # SPI Config
menu "DIO 0-5 Config"
config LORA_DIO_ON_GPIO
bool "Enable DIO GPIOs"
default n
help
Enable DIO pins.
if LORA_DIO_ON_GPIO
config LORA_DIO0_ON_GPIO
bool "Enable DIO0 GPIO"
default n
help
Enable DIO0 pin.
config LORA_DIO0_GPIO
int "DIO0 GPIO"
depends on LORA_DIO0_ON_GPIO
range 0 35
default 0
help
DIO0 pin.
config LORA_DIO1_ON_GPIO
bool "Enable DIO1 GPIO"
default n
help
Enable DIO1 pin.
config LORA_DIO1_GPIO
int "DIO1 GPIO"
depends on LORA_DIO1_ON_GPIO
range 0 35
default 0
help
DIO1 pin.
config LORA_DIO2_ON_GPIO
bool "Enable DIO2 GPIO"
default n
help
Enable DIO2 pin.
config LORA_DIO2_GPIO
int "DIO2 GPIO"
depends on LORA_DIO2_ON_GPIO
range 0 35
default 0
help
DIO2 pin.
config LORA_DIO3_ON_GPIO
bool "Enable DIO3 GPIO"
default n
help
Enable DIO3 pin.
config LORA_DIO3_GPIO
int "DIO3 GPIO"
depends on LORA_DIO3_ON_GPIO
range 0 35
default 0
help
DIO3 pin.
config LORA_DIO4_ON_GPIO
bool "Enable DIO4 GPIO"
default n
help
Enable DIO4 pin.
config LORA_DIO4_GPIO
int "DIO4 GPIO"
depends on LORA_DIO4_ON_GPIO
range 0 35
default 0
help
DIO4 pin.
config LORA_DIO5_ON_GPIO
bool "Enable DIO5 GPIO"
default n
help
Enable DIO5 pin.
config LORA_DIO5_GPIO
int "DIO5 GPIO"
depends on LORA_DIO5_ON_GPIO
range 0 35
default 0
help
DIO5 pin.
endif # LORA_DIO_ON_GPIO
endmenu # DIO 0-5 Config
endmenu # LoRa