From b1e83e3d0517c7d94cfe6fb641daa188b0b509a3 Mon Sep 17 00:00:00 2001 From: Jonah Dahlquist Date: Sat, 7 Nov 2020 23:56:50 -0800 Subject: [PATCH] Added TODOs for safer sending --- src/udp/outgoing_packet.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/udp/outgoing_packet.rs b/src/udp/outgoing_packet.rs index f2596fd..673d770 100644 --- a/src/udp/outgoing_packet.rs +++ b/src/udp/outgoing_packet.rs @@ -18,6 +18,7 @@ impl host: IpAddress, port: u16, ) -> Result { + // TODO set interrupt mask to SendOk&Timeout udp_socket .socket .set_destination_ip(&mut udp_socket.w5500.bus, host)?; @@ -52,6 +53,8 @@ impl .socket .command(&mut self.udp_socket.w5500.bus, socketn::Command::Send)?; loop { + // TODO wait until TX pointers match first + // TODO check for Timeout interrupt // wait until send is complete if self .udp_socket