1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-15 17:43:51 +01:00

drivers/sx126x: add shield_sx1262

This commit is contained in:
Fabian Hüßler 2025-04-25 16:52:36 +02:00
parent d53c7d1bcf
commit 18c7bdad89
4 changed files with 38 additions and 2 deletions

View File

@ -203,6 +203,13 @@ ifneq (,$(filter shield_llcc68,$(USEMODULE)))
USEMODULE += llcc68 USEMODULE += llcc68
endif 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))) ifneq (,$(filter shield_w5100,$(USEMODULE)))
FEATURES_REQUIRED += arduino_pins FEATURES_REQUIRED += arduino_pins
FEATURES_REQUIRED += arduino_shield_isp FEATURES_REQUIRED += arduino_shield_isp

View File

@ -194,3 +194,31 @@
* USEMODULE=shield_llcc68 make BOARD=arduino-zero -C examples/networking/misc/lorawan * 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
* ```
*/

View File

@ -23,7 +23,7 @@
#include "sx126x.h" #include "sx126x.h"
#include "sx126x_driver.h" #include "sx126x_driver.h"
#if defined(MODULE_SHIELD_LLCC68) #if defined(MODULE_SHIELD_LLCC68) || defined(MODULE_SHIELD_SX1262)
# include "arduino_iomap.h" # include "arduino_iomap.h"
#endif #endif
@ -31,7 +31,7 @@
extern "C" { extern "C" {
#endif #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 ARDUINO_SPI_D11D12D13
# define SX126X_PARAM_SPI_NSS ARDUINO_PIN_7 # define SX126X_PARAM_SPI_NSS ARDUINO_PIN_7
# define SX126X_PARAM_RESET ARDUINO_PIN_A0 # define SX126X_PARAM_RESET ARDUINO_PIN_A0

View File

@ -460,6 +460,7 @@ PSEUDOMODULES += shell_cmds_default
PSEUDOMODULES += shell_hooks PSEUDOMODULES += shell_hooks
PSEUDOMODULES += shell_lock_auto_locking PSEUDOMODULES += shell_lock_auto_locking
PSEUDOMODULES += shield_llcc68 PSEUDOMODULES += shield_llcc68
PSEUDOMODULES += shield_sx1262
PSEUDOMODULES += shield_w5100 PSEUDOMODULES += shield_w5100
PSEUDOMODULES += slipdev_stdio PSEUDOMODULES += slipdev_stdio
PSEUDOMODULES += slipdev_l2addr PSEUDOMODULES += slipdev_l2addr