diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-11-19 23:18:45 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-11-23 13:53:35 -0700 |
commit | aeff3e7d735a8313762c9e5d5689708cff02676a (patch) | |
tree | 79875e7690f25c0d50c8ced406eb5e83ec905eb0 /libhw/rp2040_include | |
parent | 70ba86d426accc06696402a8d3928ee5845b8f89 (diff) |
w5500 & timeout fixes
Diffstat (limited to 'libhw/rp2040_include')
-rw-r--r-- | libhw/rp2040_include/libhw/w5500.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libhw/rp2040_include/libhw/w5500.h b/libhw/rp2040_include/libhw/w5500.h index 7538bbc..80366a0 100644 --- a/libhw/rp2040_include/libhw/w5500.h +++ b/libhw/rp2040_include/libhw/w5500.h @@ -9,13 +9,16 @@ #include <pico/binary_info.h> /* for bi_* */ -#include <libcr_ipc/sema.h> +#include <libcr_ipc/chan.h> #include <libcr_ipc/mutex.h> +#include <libcr_ipc/sema.h> #include <libmisc/private.h> #include <libhw/generic/net.h> #include <libhw/generic/spi.h> +CR_CHAN_DECLARE(_w5500_sockintr_ch, uint8_t) + struct _w5500_socket { /* const-after-init */ implements_net_stream_listener implements_net_stream_listener; @@ -35,6 +38,7 @@ struct _w5500_socket { uint64_t read_deadline_ns; /* MODE_{TCP,UDP} */ cr_sema_t listen_sema; /* MODE_TCP */ cr_sema_t read_sema; /* MODE_{TCP,UDP} */ + _w5500_sockintr_ch_t write_ch; /* MODE_{TCP,UDP} */ bool list_open, read_open, write_open; /* MODE_TCP */ cr_mutex_t cmd_mu; |