Skip to content

Commit a06ded8

Browse files
SynchronicITkartben
authored andcommitted
drivers: ieee802154: added raw mode to mcxw ieee802154 driver
Add support for raw mode of mcxw ieee802154 driver. Signed-off-by: Vincent van der Locht <[email protected]>
1 parent a95d413 commit a06ded8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drivers/ieee802154/ieee802154_mcxw.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1352,5 +1352,11 @@ static const struct ieee802154_radio_api mcxw71_radio_api = {
13521352
#define MTU CONFIG_NET_L2_CUSTOM_IEEE802154_MTU
13531353
#endif
13541354

1355+
#if defined(CONFIG_NET_L2_PHY_IEEE802154)
13551356
NET_DEVICE_DT_INST_DEFINE(0, mcxw_init, NULL, &mcxw_ctx, NULL, CONFIG_IEEE802154_MCXW_INIT_PRIO,
1356-
&mcxw71_radio_api, L2, L2_CTX_TYPE, MTU);
1357+
&mcxw71_radio_api, L2, L2_CTX_TYPE, MTU);
1358+
#else
1359+
DEVICE_DT_INST_DEFINE(0, mcxw_init, NULL, &mcxw_ctx, NULL,
1360+
POST_KERNEL, CONFIG_IEEE802154_MCXW_INIT_PRIO,
1361+
&mcxw71_radio_api);
1362+
#endif

0 commit comments

Comments
 (0)