Skip to content

Commit 664b0a7

Browse files
committed
feat(802.15.4): use btbb function to get rssi comp for h2
1 parent 95ce1c0 commit 664b0a7

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2023-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -9,8 +9,18 @@
99
#include <stdbool.h>
1010
#include "hal/ieee802154_common_ll.h"
1111

12+
#ifdef __cplusplus
13+
extern "C" {
14+
#endif
15+
16+
extern uint32_t bt_bb_get_rssi_comp(void);
17+
1218
#define IEEE802154_TXPOWER_VALUE_MAX 20
1319
#define IEEE802154_TXPOWER_VALUE_MIN -24
1420
#define IEEE802154_TXPOWER_INDEX_MIN 0
1521

16-
#define IEEE802154_RSSI_COMPENSATION_VALUE 10
22+
#define IEEE802154_RSSI_COMPENSATION_VALUE bt_bb_get_rssi_comp()
23+
24+
#ifdef __cplusplus
25+
}
26+
#endif

0 commit comments

Comments
 (0)