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

drivers/enc28j60: do not block in ISR ctx.

This commit is contained in:
Alain Péteut 2023-04-10 14:15:40 +02:00
parent 6f0ac0c092
commit 200c49dead

View File

@ -249,9 +249,6 @@ static void mac_set(enc28j60_t *dev, uint8_t *mac)
static void on_int(void *arg)
{
/* disable global interrupt enable bit to avoid losing interrupts */
cmd_bfc((enc28j60_t *)arg, REG_EIE, -1, EIE_INTIE);
netdev_trigger_event_isr(arg);
}
@ -453,6 +450,8 @@ static int nd_init(netdev_t *netdev)
static void nd_isr(netdev_t *netdev)
{
enc28j60_t *dev = (enc28j60_t *)netdev;
/* disable global interrupt enable bit to avoid losing interrupts */
cmd_bfc(dev, REG_EIE, -1, EIE_INTIE);
uint8_t eir = cmd_rcr(dev, REG_EIR, -1);
while (eir != 0) {