ieee802154: update test code

This commit is contained in:
xiaqilin
2023-07-03 10:50:03 +08:00
committed by zhangwenxu
parent 91d17e0073
commit bdc49fbff4
2 changed files with 7 additions and 6 deletions

View File

@ -10,7 +10,7 @@
#include "esp_ieee802154_dev.h"
#include "esp_ieee802154_frame.h"
const char *TAG = "ieee802154 frame";
static const char *TAG = "ieee802154 frame";
IEEE802154_STATIC IEEE802154_INLINE bool is_security_enabled(const uint8_t *frame)
{

View File

@ -202,15 +202,16 @@ extern void esp_ieee802154_receive_failed(uint16_t error);
*/
extern void esp_ieee802154_ed_failed(uint16_t error);
#if !CONFIG_IEEE802154_TEST
#define IEEE802154_STATIC static
#define IEEE802154_INLINE inline
#else
#if CONFIG_IEEE802154_TEST
#define IEEE802154_STATIC
#define IEEE802154_INLINE
extern void esp_ieee802154_timer0_done(void);
extern void esp_ieee802154_timer1_done(void);
#endif
#else
#define IEEE802154_STATIC static
#define IEEE802154_INLINE inline
#endif // CONFIG_IEEE802154_TEST
#ifdef __cplusplus
}
#endif