1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

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:
Leandro Lanzieri 2020-07-06 14:21:58 +02:00
parent d510e034ea
commit a320181f55
No known key found for this signature in database
GPG Key ID: 13559905E2EBEAA5

View File

@ -82,6 +82,10 @@ static int _init(netdev_t *netdev)
/* reset device to default values and put it into RX state */
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;
}