mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
clear EIE INTIE instead of non-existent EIR INTIE
This commit is contained in:
parent
439a709c42
commit
6168622176
@ -728,7 +728,7 @@ loop_start:
|
||||
continue; // -> just continue to check again
|
||||
}
|
||||
// the host controller should clear the global enable bit for the interrupt pin before servicing the interrupt
|
||||
MAC_CHECK_NO_RET(enc28j60_do_bitwise_clr(emac, ENC28J60_EIR, EIE_INTIE) == ESP_OK,
|
||||
MAC_CHECK_NO_RET(enc28j60_do_bitwise_clr(emac, ENC28J60_EIE, EIE_INTIE) == ESP_OK,
|
||||
"clear EIE_INTIE failed", loop_start);
|
||||
// read interrupt status
|
||||
MAC_CHECK_NO_RET(enc28j60_do_register_read(emac, true, ENC28J60_EIR, &status) == ESP_OK,
|
||||
|
Loading…
Reference in New Issue
Block a user