Level-triggered w6300 interrupt, drain until empty, rearm after drain

This commit is contained in:
Ian Gulliver
2026-04-11 21:51:22 +09:00
parent 8b69917e1d
commit a635aa04e0
3 changed files with 12 additions and 6 deletions

View File

@@ -41,6 +41,7 @@ extern volatile bool irq_pending;
void clear_interrupt(intr_kind intr);
void set_interrupt_mask(intr_kind intr);
void rearm_gpio_irq();
std::expected<socket_id, sock_error> open_socket(socket_id sn, protocol proto, sock_flag flag);
std::expected<uint16_t, sock_error> send(socket_id sn, std::span<const uint8_t> buf);