Skip to content

Commit 125ad64

Browse files
committed
Add configuration files to allow for user configurable SPI parameters
1 parent 36debb2 commit 125ad64

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

Kconfig

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
menu "LoRaWAN Configuration"
2+
3+
config LORAWAN_SPI_MISO_GPIO
4+
int "SPI MISO GPIO"
5+
help
6+
Set the GPIO number used for SPI MISO.
7+
8+
config LORAWAN_SPI_MOSI_GPIO
9+
int "SPI MOSI GPIO"
10+
help
11+
Set the GPIO number used for SPI MOSI.
12+
13+
config LORAWAN_SPI_SCLK_GPIO
14+
int "SPI SCLK GPIO"
15+
help
16+
Set the GPIO number used for SPI SCLK.
17+
18+
config LORAWAN_SPI_CS_GPIO
19+
int "SPI CS GPIO"
20+
help
21+
Set the GPIO number used for SPI CS.
22+
23+
config LORAWAN_RESET_GPIO
24+
int "SX1262 RESET GPIO"
25+
help
26+
Set the GPIO number used for RESET.
27+
28+
config LORAWAN_IRQ_DIO1_GPIO
29+
int "SX1262 IRQ (DIO1) GPIO"
30+
help
31+
Set the GPIO number used for IRQ (DIO1).
32+
33+
config LORAWAN_BUSY_GPIO
34+
int "SX1262 BUSY GPIO"
35+
help
36+
Set the GPIO number used for BUSY.
37+
38+
config LORAWAN_SPI_HOST
39+
int "SX1262 SPI HOST"
40+
default 1
41+
help
42+
The SPI peripheral used to communicate with the SX1262.
43+
0 = SPI1_HOST
44+
1 = SPI2_HOST
45+
2 = SPI3_HOST
46+
47+
endmenu

idf_component.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
description: Creates an ESP32 component to allow ESP32 board compatibility with the LoRaMac-node stack.
2+
dependencies:
3+
idf:
4+
version: ">=5.0"

0 commit comments

Comments
 (0)