Skip to content

Commit

Permalink
ports: Allow boards to define additional network interfaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
iabdalkader authored and dpgeorge committed Mar 24, 2022
1 parent 66fe3d5 commit fe8b47e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ports/mimxrt/mpconfigport.h
Expand Up @@ -267,8 +267,13 @@ extern const struct _mp_obj_type_t network_lan_type;
SOCKET_BUILTIN_MODULE \
NETWORK_BUILTIN_MODULE \

#ifndef MICROPY_BOARD_NETWORK_INTERFACES
#define MICROPY_BOARD_NETWORK_INTERFACES
#endif

#define MICROPY_PORT_NETWORK_INTERFACES \
MICROPY_HW_NIC_ETH \
MICROPY_BOARD_NETWORK_INTERFACES \

#define MICROPY_HW_PIT_NUM_CHANNELS 3

Expand Down
5 changes: 5 additions & 0 deletions ports/rp2/mpconfigport.h
Expand Up @@ -192,8 +192,13 @@ extern const struct _mod_network_nic_type_t mod_network_nic_type_nina;
SOCKET_BUILTIN_MODULE \
NETWORK_BUILTIN_MODULE \

#ifndef MICROPY_BOARD_NETWORK_INTERFACES
#define MICROPY_BOARD_NETWORK_INTERFACES
#endif

#define MICROPY_PORT_NETWORK_INTERFACES \
MICROPY_HW_NIC_NINAW10 \
MICROPY_BOARD_NETWORK_INTERFACES \

#ifndef MICROPY_BOARD_ROOT_POINTERS
#define MICROPY_BOARD_ROOT_POINTERS
Expand Down
5 changes: 5 additions & 0 deletions ports/stm32/mpconfigport.h
Expand Up @@ -280,11 +280,16 @@ extern const struct _mod_network_nic_type_t mod_network_nic_type_cc3k;
PYB_BUILTIN_MODULE \
STM_BUILTIN_MODULE \

#ifndef MICROPY_BOARD_NETWORK_INTERFACES
#define MICROPY_BOARD_NETWORK_INTERFACES
#endif

#define MICROPY_PORT_NETWORK_INTERFACES \
MICROPY_HW_NIC_ETH \
MICROPY_HW_NIC_CYW43 \
MICROPY_HW_NIC_WIZNET5K \
MICROPY_HW_NIC_CC3K \
MICROPY_BOARD_NETWORK_INTERFACES \

#define MP_STATE_PORT MP_STATE_VM

Expand Down

0 comments on commit fe8b47e

Please sign in to comment.