Skip to content

Commit cf9e19f

Browse files
committed
mimxrt/network: Add USB Network support.
Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
1 parent 7e20204 commit cf9e19f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ports/mimxrt/mpconfigport.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,21 @@ extern const struct _mp_obj_type_t mp_network_cyw43_type;
185185
#define MICROPY_HW_NIC_CYW43
186186
#endif
187187

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+
188195
#ifndef MICROPY_BOARD_NETWORK_INTERFACES
189196
#define MICROPY_BOARD_NETWORK_INTERFACES
190197
#endif
191198

192199
#define MICROPY_PORT_NETWORK_INTERFACES \
193200
MICROPY_HW_NIC_ETH \
194201
MICROPY_HW_NIC_CYW43 \
202+
MICROPY_HW_NIC_USBNET \
195203
MICROPY_BOARD_NETWORK_INTERFACES \
196204

197205
#ifndef MICROPY_BOARD_ROOT_POINTERS

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy