diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-12-09 07:56:02 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-12-09 12:24:43 -0700 |
commit | 13277cbe391c4502422c7203d333caf2b0ba3f11 (patch) | |
tree | 7eeb3589b9abdafc5bb5053280e7628742c049d4 /libhw/rp2040_include | |
parent | f9d571d233711c4a1a65c4d5756e09bc9960cc0a (diff) |
w5500: Rethink locking wrt interrupt handling
Diffstat (limited to 'libhw/rp2040_include')
-rw-r--r-- | libhw/rp2040_include/libhw/w5500.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhw/rp2040_include/libhw/w5500.h b/libhw/rp2040_include/libhw/w5500.h index 80366a0..3cae620 100644 --- a/libhw/rp2040_include/libhw/w5500.h +++ b/libhw/rp2040_include/libhw/w5500.h @@ -41,7 +41,6 @@ struct _w5500_socket { _w5500_sockintr_ch_t write_ch; /* MODE_{TCP,UDP} */ bool list_open, read_open, write_open; /* MODE_TCP */ - cr_mutex_t cmd_mu; END_PRIVATE(LIBHW_W5500_H) }; @@ -59,6 +58,7 @@ struct w5500 { struct _w5500_socket sockets[8]; struct _w5500_socket *free; cr_sema_t intr; + cr_mutex_t mu; END_PRIVATE(LIBHW_W5500_H) }; |