mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
feat(ieee802154): rf enable and disable refactor
This commit is contained in:
@@ -55,6 +55,17 @@ void ieee802154_enable(void);
|
||||
*/
|
||||
void ieee802154_disable(void);
|
||||
|
||||
/**
|
||||
* @brief Enable the RF.
|
||||
*
|
||||
*/
|
||||
void ieee802154_rf_enable(void);
|
||||
|
||||
/**
|
||||
* @brief Disable the RF.
|
||||
*
|
||||
*/
|
||||
void ieee802154_rf_disable(void);
|
||||
/**
|
||||
* @brief Initialize the IEEE 802.15.4 MAC.
|
||||
*
|
||||
|
||||
@@ -15,6 +15,13 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if SOC_PM_MODEM_RETENTION_BY_REGDMA && CONFIG_FREERTOS_USE_TICKLESS_IDLE
|
||||
#define IEEE802154_RF_ENABLE() ieee802154_rf_enable()
|
||||
#define IEEE802154_RF_DISABLE() ieee802154_rf_disable()
|
||||
#else
|
||||
#define IEEE802154_RF_ENABLE()
|
||||
#define IEEE802154_RF_DISABLE()
|
||||
#endif // SOC_PM_MODEM_RETENTION_BY_REGDMA && CONFIG_FREERTOS_USE_TICKLESS_IDLE
|
||||
#define IEEE802154_PROBE(a) do { \
|
||||
IEEE802154_RECORD_EVENT(a); \
|
||||
ieee802154_record_abort(a); \
|
||||
|
||||
Reference in New Issue
Block a user