feat(802.15.4): support 154 on esp32s31

This commit is contained in:
zhuanghang
2026-04-20 19:47:47 +08:00
parent dc29bf9e72
commit 9d3a0945fb
19 changed files with 1286 additions and 16 deletions
@@ -0,0 +1,12 @@
/*
* SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "hal/ieee802154_periph.h"
const ieee802154_conn_t ieee802154_periph = {
.module = PERIPH_IEEE802154_MODULE,
.irq_id = ETS_MODEM_ZB_MAC_INTR_SOURCE,
};
@@ -0,0 +1,29 @@
/*
* SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include "hal/ieee802154_common_ll.h"
#ifdef __cplusplus
extern "C" {
#endif
#define IEEE802154_RSSI_COMPENSATION_VALUE 0
static inline uint32_t ieee802154_ll_get_rx_filter_not_work_cnt(void)
{
return IEEE802154.debug_sfd_timeout_cnt.rx_filter_not_work_cnt;
}
static inline uint32_t ieee802154_ll_get_rx_preamble_detect_err_cnt(void)
{
return IEEE802154.debug_crc_error_cnt.rx_preamble_detect_err_cnt;
}
#ifdef __cplusplus
}
#endif