File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -185,13 +185,21 @@ extern const struct _mp_obj_type_t mp_network_cyw43_type;
185
185
#define MICROPY_HW_NIC_CYW43
186
186
#endif
187
187
188
+ #if MICROPY_HW_NETWORK_USBNET
189
+ extern const struct _mp_obj_type_t mod_network_nic_type_usbnet ;
190
+ #define MICROPY_HW_NIC_USBNET { MP_ROM_QSTR(MP_QSTR_USB_NET), MP_ROM_PTR(&mod_network_nic_type_usbnet) },
191
+ #else
192
+ #define MICROPY_HW_NIC_USBNET
193
+ #endif
194
+
188
195
#ifndef MICROPY_BOARD_NETWORK_INTERFACES
189
196
#define MICROPY_BOARD_NETWORK_INTERFACES
190
197
#endif
191
198
192
199
#define MICROPY_PORT_NETWORK_INTERFACES \
193
200
MICROPY_HW_NIC_ETH \
194
201
MICROPY_HW_NIC_CYW43 \
202
+ MICROPY_HW_NIC_USBNET \
195
203
MICROPY_BOARD_NETWORK_INTERFACES \
196
204
197
205
#ifndef MICROPY_BOARD_ROOT_POINTERS
You can’t perform that action at this time.
0 commit comments