Fix compilation errors for imxrt1176 from wuzheng

it is OK
This commit is contained in:
xuedongliang 2024-10-10 18:08:24 +08:00
commit 49b20dfa6a
4 changed files with 20 additions and 0 deletions

View File

@ -2,6 +2,10 @@ ifeq ($(CONFIG_BOARD_CORTEX_M7_EVB),y)
SRC_FILES := boot.S interrupt.c interrupt_vector.S SRC_FILES := boot.S interrupt.c interrupt_vector.S
endif endif
ifeq ($(CONFIG_BOARD_IMXRT1176_SBC_EVB),y)
SRC_FILES := boot.S interrupt.c interrupt_vector.S
endif
ifeq ($(CONFIG_BOARD_CORTEX_V2M_EVB),y) ifeq ($(CONFIG_BOARD_CORTEX_V2M_EVB),y)
SRC_DIR += V2M SRC_DIR += V2M
endif endif

View File

@ -231,6 +231,19 @@ void ethernetif_input(void *netif_arg)
} }
} }
/**
* This function should be called when a packet is ready to be read
* from the interface. It uses the function ethernetif_linkinput() that
* should handle the actual reception of bytes from the network
* interface. Then the type of the received packet is determined and
* the appropriate input function is called.
*
* @param netif the lwip network interface structure for this ethernetif
*/
void ethernetif_input2(void *netif_arg){
ethernetif_input(netif_arg);
}
void *ethernetif_get_enet_base(const uint8_t enetIdx) void *ethernetif_get_enet_base(const uint8_t enetIdx)
{ {
ENET_Type *enets[] = ENET_BASE_PTRS; ENET_Type *enets[] = ENET_BASE_PTRS;

View File

@ -160,6 +160,7 @@ err_t ethernetif1_init(struct netif *netif);
* @param netif the lwip network interface structure for this ethernetif * @param netif the lwip network interface structure for this ethernetif
*/ */
void ethernetif_input( void *netif_arg); void ethernetif_input( void *netif_arg);
void ethernetif_input2( void *netif_arg);
int ETH_BSP_Config(void); int ETH_BSP_Config(void);
void *ethernetif_config_enet_set(uint8_t enet_port); void *ethernetif_config_enet_set(uint8_t enet_port);

View File

@ -506,7 +506,9 @@ The STM32F4x7 allows computing and verifying the IP, UDP, TCP and ICMP checksums
#define IP_REASSEMBLY 1 #define IP_REASSEMBLY 1
#define IP_FRAG 1 #define IP_FRAG 1
#define IP_REASS_MAX_PBUFS 10 #define IP_REASS_MAX_PBUFS 10
#ifndef MEMP_NUM_REASSDATA
#define MEMP_NUM_REASSDATA 10 #define MEMP_NUM_REASSDATA 10
#endif
#else #else
#define IP_REASSEMBLY 0 #define IP_REASSEMBLY 0
#define IP_FRAG 0 #define IP_FRAG 0