Add RF switch settings for STM32WL variants (#7813)

* Add RF switch settings for STM32WL variants

* Shuffle ifdefs in STM32WLE5JCInterface to make it not get built by other targets
This commit is contained in:
Chloe Bethel
2025-09-04 06:12:47 +01:00
committed by GitHub
parent 18550ea80c
commit 2e8f4ad6af
8 changed files with 30 additions and 18 deletions

View File

@@ -1,13 +1,13 @@
#include "STM32WLE5JCInterface.h"
#include "configuration.h"
#ifdef ARCH_STM32WL
#include "STM32WLE5JCInterface.h"
#include "error.h"
#ifndef STM32WLx_MAX_POWER
#define STM32WLx_MAX_POWER 22
#endif
#ifdef ARCH_STM32WL
STM32WLE5JCInterface::STM32WLE5JCInterface(LockingArduinoHal *hal, RADIOLIB_PIN_TYPE cs, RADIOLIB_PIN_TYPE irq,
RADIOLIB_PIN_TYPE rst, RADIOLIB_PIN_TYPE busy)
: SX126xInterface(hal, cs, irq, rst, busy)