drivers/kw2xrf: Enable TX End IRQ in netdev init
The driver needs this event but gnrc_netif_ieee802154 only enables the interrupt when MODULE_NETSTATS_L2 is active.
This commit is contained in:
parent
d510e034ea
commit
a320181f55
@ -82,6 +82,10 @@ static int _init(netdev_t *netdev)
|
|||||||
/* reset device to default values and put it into RX state */
|
/* reset device to default values and put it into RX state */
|
||||||
kw2xrf_reset_phy(dev);
|
kw2xrf_reset_phy(dev);
|
||||||
|
|
||||||
|
/* enable TX End IRQ: the driver uses the event and gnrc_netif_ieee802154
|
||||||
|
* only enables this when MODULE_NETSTATS_L2 is active */
|
||||||
|
kw2xrf_clear_dreg_bit(dev, MKW2XDM_PHY_CTRL2, MKW2XDM_PHY_CTRL2_TXMSK);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user