Skip net_poll and timers unless their interrupt has fired

This commit is contained in:
Ian Gulliver
2026-04-10 22:00:34 +09:00
parent 8edf8c2d4f
commit f2d98ef4f1
4 changed files with 15 additions and 3 deletions

View File

@@ -293,6 +293,8 @@ void net_set_handler(net_handler handler) {
}
void net_poll() {
if (!w6300::irq_pending) return;
w6300::irq_pending = false;
w6300::clear_interrupt(w6300::ik_int_all);
if (w6300::get_socket_recv_buf(raw_socket) == 0) return;
static uint8_t rx_buf[1518];