mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
Merge pull request #517 from DrDoof/fix/rx-drain
rx: keep draining while the NIC buffer holds data
This commit is contained in:
1 file changed
+5
-1
+5
-1
@@ -1300,7 +1300,11 @@ void idle(void)
|
||||
rx_irq = 0;
|
||||
handle_rx();
|
||||
REG_SET(RTL837X_NIC_INT_STS, NIC_INT_RXIS);
|
||||
EX1 = 1;
|
||||
reg_read(RTL837X_REG_NIC_RX_BUFF_DATA);
|
||||
if (SFR_DATA_U16)
|
||||
rx_irq = 1;
|
||||
else
|
||||
EX1 = 1;
|
||||
}
|
||||
health_phase(HEALTH_PH_RX);
|
||||
if (cmd_available) {
|
||||
|
||||
Reference in new issue
Block a user