kopia lustrzana https://github.com/micropython/micropython
wiznet5k: stm32: Add support for nonblocking and settimeout.
Signed-off-by: Jared Hancock <jared@greezybacon.me>pull/14265/head
rodzic
4364ad74ae
commit
c1b0c7eca3
|
@ -202,6 +202,10 @@ extern const struct _mp_obj_type_t mp_network_cyw43_type;
|
||||||
#if MICROPY_PY_NETWORK_WIZNET5K
|
#if MICROPY_PY_NETWORK_WIZNET5K
|
||||||
extern const struct _mp_obj_type_t mod_network_nic_type_wiznet5k;
|
extern const struct _mp_obj_type_t mod_network_nic_type_wiznet5k;
|
||||||
#define MICROPY_HW_NIC_WIZNET5K { MP_ROM_QSTR(MP_QSTR_WIZNET5K), MP_ROM_PTR(&mod_network_nic_type_wiznet5k) },
|
#define MICROPY_HW_NIC_WIZNET5K { MP_ROM_QSTR(MP_QSTR_WIZNET5K), MP_ROM_PTR(&mod_network_nic_type_wiznet5k) },
|
||||||
|
// This Network interface requires the extended socket state for timeouts and non-blocking
|
||||||
|
#ifndef MICROPY_PY_SOCKET_EXTENDED_STATE
|
||||||
|
#define MICROPY_PY_SOCKET_EXTENDED_STATE (1)
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define MICROPY_HW_NIC_WIZNET5K
|
#define MICROPY_HW_NIC_WIZNET5K
|
||||||
#endif
|
#endif
|
||||||
|
|
Ładowanie…
Reference in New Issue