Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions drivers/Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,13 @@ ifneq (,$(filter shield_llcc68,$(USEMODULE)))
USEMODULE += llcc68
endif

ifneq (,$(filter shield_sx1262,$(USEMODULE)))
FEATURES_REQUIRED += arduino_pins
FEATURES_REQUIRED += arduino_shield_uno
FEATURES_REQUIRED += arduino_spi
USEMODULE += sx1262
endif

ifneq (,$(filter shield_w5100,$(USEMODULE)))
FEATURES_REQUIRED += arduino_pins
FEATURES_REQUIRED += arduino_shield_isp
Expand Down
28 changes: 28 additions & 0 deletions drivers/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,31 @@
* USEMODULE=shield_llcc68 make BOARD=arduino-zero -C examples/networking/misc/lorawan
* ```
*/

/**
* @defgroup drivers_shield_sx1262 SX1262 Arduino LoRa Shield
* @ingroup drivers_shield
* @brief SX1262 Arduino LoRa Shield
*
* # Overview
*
* @image html https://www.semtech.com/uploads/products/SX1262MB2CAS_shield_1_fixed.png "Photo of the SX1262 Shield" width=50%
*
* | Key | Value |
* |:---------------------- |:--------------------------------------------------------------------- |
* | Abstract | LoRa Transceiver |
* | Product Name | SX1262MB2CAS |
* | Vendor | Semtech |
* | Vendor Doc | [Product Homepage][shield_sx1262_hp] |
* | Attachment Standard | Arduino UNO Shield (Side SPI used, no ISP-SPI required) |
*
* [shield_sx1262_hp]: https://www.semtech.com/products/wireless-rf/lora-connect/sx1262mb2cas
*
* # Usage
*
* Use the `shield_sx1262` module, e.g. using
*
* ```
* USEMODULE=shield_sx1262 make BOARD=arduino-zero -C examples/networking/misc/lorawan
* ```
*/
4 changes: 2 additions & 2 deletions drivers/sx126x/include/sx126x_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
#include "sx126x.h"
#include "sx126x_driver.h"

#ifdef MODULE_SHIELD_LC68
#if defined(MODULE_SHIELD_LLCC68) || defined(MODULE_SHIELD_SX1262)
# include "arduino_iomap.h"
#endif

#ifdef __cplusplus
extern "C" {
#endif

#ifdef MODULE_SHIELD_LLCC68
#if defined(MODULE_SHIELD_LLCC68) || defined(MODULE_SHIELD_SX1262)
# define SX126X_PARAM_SPI ARDUINO_SPI_D11D12D13
# define SX126X_PARAM_SPI_NSS ARDUINO_PIN_7
# define SX126X_PARAM_RESET ARDUINO_PIN_A0
Expand Down
1 change: 1 addition & 0 deletions makefiles/pseudomodules.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ PSEUDOMODULES += shell_cmds_default
PSEUDOMODULES += shell_hooks
PSEUDOMODULES += shell_lock_auto_locking
PSEUDOMODULES += shield_llcc68
PSEUDOMODULES += shield_sx1262
PSEUDOMODULES += shield_w5100
PSEUDOMODULES += slipdev_stdio
PSEUDOMODULES += slipdev_l2addr
Expand Down