From 7c9dbde659d03ba4733157c493c07d5fd32988a9 Mon Sep 17 00:00:00 2001 From: Ayush Singh Date: Fri, 16 Feb 2024 23:19:20 +0530 Subject: [PATCH] ieee802154: ieee802154_cc13xx_cc26xx_subg: Fix 6lowpan for cc1352p7 - Fix using custom setup function - Enable pRegOverrideTxStd and pRegOverrideTx20 in ieee802154_cc13xx_subg_radio_div_setup struct Signed-off-by: Ayush Singh --- drivers/ieee802154/ieee802154_cc13xx_cc26xx_subg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/ieee802154/ieee802154_cc13xx_cc26xx_subg.c b/drivers/ieee802154/ieee802154_cc13xx_cc26xx_subg.c index dbaa02ff9eb284..7f2356e8ecfec2 100644 --- a/drivers/ieee802154/ieee802154_cc13xx_cc26xx_subg.c +++ b/drivers/ieee802154/ieee802154_cc13xx_cc26xx_subg.c @@ -45,7 +45,7 @@ static int drv_stop_rx(const struct device *dev); /* User-defined CMD_PROP_RADIO_DIV_SETUP structures */ #if defined(CONFIG_SOC_CC1352R) extern volatile rfc_CMD_PROP_RADIO_DIV_SETUP_t ieee802154_cc13xx_subg_radio_div_setup; -#elif defined(CONFIG_SOC_CC1352P) +#elif defined(CONFIG_SOC_CC1352P) || defined(CONFIG_SOC_CC1352P7) extern volatile rfc_CMD_PROP_RADIO_DIV_SETUP_PA_t ieee802154_cc13xx_subg_radio_div_setup; #endif /* CONFIG_SOC_CC1352x, extern RADIO_DIV_SETUP */ #else @@ -170,10 +170,10 @@ static volatile rfc_CMD_PROP_RADIO_DIV_SETUP_PA_t ieee802154_cc13xx_subg_radio_d .intFreq = 0x8000, /* Use default intermediate frequency. */ .loDivider = 5, .pRegOverride = ieee802154_cc13xx_overrides_sub_ghz, -#if defined(CONFIG_SOC_CC1352P) +#if defined(CONFIG_SOC_CC1352P) || defined(CONFIG_SOC_CC1352P7) .pRegOverrideTxStd = rf_prop_overrides_tx_std, .pRegOverrideTx20 = rf_prop_overrides_tx_20, -#endif /* CONFIG_SOC_CC1352P */ +#endif /* CONFIG_SOC_CC1352P, CONFIG_SOC_CC1352P7 */ }; #endif /* CONFIG_IEEE802154_CC13XX_CC26XX_SUB_GHZ_CUSTOM_RADIO_SETUP */