Skip to content

Commit 18c7bda

Browse files
committed
drivers/sx126x: add shield_sx1262
1 parent d53c7d1 commit 18c7bda

File tree

4 files changed

+38
-2
lines changed

4 files changed

+38
-2
lines changed

drivers/Makefile.dep

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,13 @@ ifneq (,$(filter shield_llcc68,$(USEMODULE)))
203203
USEMODULE += llcc68
204204
endif
205205

206+
ifneq (,$(filter shield_sx1262,$(USEMODULE)))
207+
FEATURES_REQUIRED += arduino_pins
208+
FEATURES_REQUIRED += arduino_shield_uno
209+
FEATURES_REQUIRED += arduino_spi
210+
USEMODULE += sx1262
211+
endif
212+
206213
ifneq (,$(filter shield_w5100,$(USEMODULE)))
207214
FEATURES_REQUIRED += arduino_pins
208215
FEATURES_REQUIRED += arduino_shield_isp

drivers/doc.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,31 @@
194194
* USEMODULE=shield_llcc68 make BOARD=arduino-zero -C examples/networking/misc/lorawan
195195
* ```
196196
*/
197+
198+
/**
199+
* @defgroup drivers_shield_sx1262 SX1262 Arduino LoRa Shield
200+
* @ingroup drivers_shield
201+
* @brief SX1262 Arduino LoRa Shield
202+
*
203+
* # Overview
204+
*
205+
* @image html https://www.semtech.com/uploads/products/SX1262MB2CAS_shield_1_fixed.png "Photo of the SX1262 Shield" width=50%
206+
*
207+
* | Key | Value |
208+
* |:---------------------- |:--------------------------------------------------------------------- |
209+
* | Abstract | LoRa Transceiver |
210+
* | Product Name | SX1262MB2CAS |
211+
* | Vendor | Semtech |
212+
* | Vendor Doc | [Product Homepage][shield_sx1262_hp] |
213+
* | Attachment Standard | Arduino UNO Shield (Side SPI used, no ISP-SPI required) |
214+
*
215+
* [shield_sx1262_hp]: https://www.semtech.com/products/wireless-rf/lora-connect/sx1262mb2cas
216+
*
217+
* # Usage
218+
*
219+
* Use the `shield_sx1262` module, e.g. using
220+
*
221+
* ```
222+
* USEMODULE=shield_sx1262 make BOARD=arduino-zero -C examples/networking/misc/lorawan
223+
* ```
224+
*/

drivers/sx126x/include/sx126x_params.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
#include "sx126x.h"
2424
#include "sx126x_driver.h"
2525

26-
#if defined(MODULE_SHIELD_LLCC68)
26+
#if defined(MODULE_SHIELD_LLCC68) || defined(MODULE_SHIELD_SX1262)
2727
# include "arduino_iomap.h"
2828
#endif
2929

3030
#ifdef __cplusplus
3131
extern "C" {
3232
#endif
3333

34-
#ifdef MODULE_SHIELD_LLCC68
34+
#if defined(MODULE_SHIELD_LLCC68) || defined(MODULE_SHIELD_SX1262)
3535
# define SX126X_PARAM_SPI ARDUINO_SPI_D11D12D13
3636
# define SX126X_PARAM_SPI_NSS ARDUINO_PIN_7
3737
# define SX126X_PARAM_RESET ARDUINO_PIN_A0

makefiles/pseudomodules.inc.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ PSEUDOMODULES += shell_cmds_default
460460
PSEUDOMODULES += shell_hooks
461461
PSEUDOMODULES += shell_lock_auto_locking
462462
PSEUDOMODULES += shield_llcc68
463+
PSEUDOMODULES += shield_sx1262
463464
PSEUDOMODULES += shield_w5100
464465
PSEUDOMODULES += slipdev_stdio
465466
PSEUDOMODULES += slipdev_l2addr

0 commit comments

Comments
 (0)