mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
feat(802.15.4): set default pti and ed/cca pti to 3 for 154
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2023-2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -475,8 +475,8 @@ static inline void ieee802154_ll_set_security_key(uint8_t *security_key)
|
||||
|
||||
static inline void ieee802154_ll_disable_coex(void)
|
||||
{
|
||||
IEEE802154.pti.pti = 1;
|
||||
IEEE802154.pti.hw_ack_pti = 1;
|
||||
IEEE802154.pti.pti = 3;
|
||||
IEEE802154.pti.hw_ack_pti = 3;
|
||||
}
|
||||
|
||||
static inline void ieee802154_ll_clear_debug_cnt(uint32_t clear_bits)
|
||||
|
||||
@@ -1162,6 +1162,7 @@ esp_err_t ieee802154_energy_detect(uint32_t duration)
|
||||
stop_current_operation();
|
||||
|
||||
ieee802154_pib_update();
|
||||
IEEE802154_SET_TXRX_PTI(IEEE802154_SCENE_RX);
|
||||
|
||||
start_ed(duration);
|
||||
ieee802154_set_state(IEEE802154_STATE_ED);
|
||||
@@ -1178,6 +1179,7 @@ esp_err_t ieee802154_cca(void)
|
||||
stop_current_operation();
|
||||
|
||||
ieee802154_pib_update();
|
||||
IEEE802154_SET_TXRX_PTI(IEEE802154_SCENE_RX);
|
||||
|
||||
start_ed(CCA_DETECTION_TIME);
|
||||
ieee802154_set_state(IEEE802154_STATE_CCA);
|
||||
|
||||
Reference in New Issue
Block a user