From 664b0a772eac440f13bf817c4c52a84eacf62e08 Mon Sep 17 00:00:00 2001 From: zwx Date: Tue, 14 Jan 2025 17:10:50 +0800 Subject: [PATCH] feat(802.15.4): use btbb function to get rssi comp for h2 --- components/esp_phy/lib | 2 +- components/hal/esp32h2/include/hal/ieee802154_ll.h | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/components/esp_phy/lib b/components/esp_phy/lib index 7114c37cbc..3890807583 160000 --- a/components/esp_phy/lib +++ b/components/esp_phy/lib @@ -1 +1 @@ -Subproject commit 7114c37cbc163e373e8dd4a7ecfdeacddc9fa8c2 +Subproject commit 38908075833e4ae3a48e6ffe431a672698e07e21 diff --git a/components/hal/esp32h2/include/hal/ieee802154_ll.h b/components/hal/esp32h2/include/hal/ieee802154_ll.h index c873c5515e..2795fc4896 100644 --- a/components/hal/esp32h2/include/hal/ieee802154_ll.h +++ b/components/hal/esp32h2/include/hal/ieee802154_ll.h @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2023-2025 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ @@ -9,8 +9,18 @@ #include #include "hal/ieee802154_common_ll.h" +#ifdef __cplusplus +extern "C" { +#endif + +extern uint32_t bt_bb_get_rssi_comp(void); + #define IEEE802154_TXPOWER_VALUE_MAX 20 #define IEEE802154_TXPOWER_VALUE_MIN -24 #define IEEE802154_TXPOWER_INDEX_MIN 0 -#define IEEE802154_RSSI_COMPENSATION_VALUE 10 +#define IEEE802154_RSSI_COMPENSATION_VALUE bt_bb_get_rssi_comp() + +#ifdef __cplusplus +} +#endif