Skip to content

Commit

Permalink
Merge pull request #18466 from benpicco/netdev_legacy_api-KConfig
Browse files Browse the repository at this point in the history
cpu/{sam0_common, stm32}: select netdev_legacy_api in KConfig
  • Loading branch information
MrKevinWeiss authored Aug 18, 2022
2 parents 2dd5923 + 2873976 commit f820f94
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions cpu/sam0_common/sam0_eth/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ config MODULE_SAM0_ETH
depends on CPU_COMMON_SAM0
depends on HAS_PERIPH_ETH
select MODULE_NETDEV_ETH
select MODULE_NETDEV_LEGACY_API
select MODULE_NETOPT
select MODULE_IOLIST
select MODULE_PERIPH_ETH
Expand Down
1 change: 1 addition & 0 deletions cpu/stm32/periph/Kconfig.eth
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ menuconfig MODULE_STM32_ETH
depends on HAS_PERIPH_ETH
select MODULE_PERIPH_ETH
select MODULE_NETDEV_ETH
select MODULE_NETDEV_LEGACY_API
select MODULE_IOLIST
select MODULE_ZTIMER
select MODULE_ZTIMER_MSEC
Expand Down
1 change: 1 addition & 0 deletions drivers/sx1280/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ config MODULE_SX1280
depends on TEST_KCONFIG
select PACKAGE_LORABASICS
select MODULE_LORABASICS_SX1280_DRIVER
select MODULE_NETDEV_LEGACY_API

config HAVE_SX1280
bool
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
From 0606d43c2ea293d4ed96843406736a9b2a159fdd Mon Sep 17 00:00:00 2001
From: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Date: Thu, 18 Aug 2022 01:04:22 +0200
Subject: [PATCH] ral_sx1280: fix unused parameter warning

---
smtc_ral/src/ral_sx1280.c | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/smtc_ral/src/ral_sx1280.c b/smtc_ral/src/ral_sx1280.c
index ecd8c03..bc75dff 100644
--- a/smtc_ral/src/ral_sx1280.c
+++ b/smtc_ral/src/ral_sx1280.c
@@ -474,11 +474,17 @@ ral_status_t ral_sx1280_setup_tx_flrc( const ral_t* ral, const ral_params_flrc_t

ral_status_t ral_sx1280_setup_tx_lora_e( const ral_t* ral, const ral_params_lora_e_t* params )
{
+ (void)ral;
+ (void)params;
+
return RAL_STATUS_UNSUPPORTED_FEATURE;
}

ral_status_t ral_sx1280_tx_bpsk( const ral_t* ral, const ral_params_bpsk_t* params )
{
+ (void)ral;
+ (void)params;
+
return RAL_STATUS_UNSUPPORTED_FEATURE;
}

--
2.34.1

0 comments on commit f820f94

Please sign in to comment.