ports: Allow boards to define additional network interfaces.

This commit is contained in:
iabdalkader
2022-03-10 00:54:44 +02:00
committed by Damien George
parent 66fe3d5cb5
commit fe8b47e29f
3 changed files with 15 additions and 0 deletions

View File

@@ -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