fix compliation errors for imxrt1176.

This commit is contained in:
WuZheng 2024-09-26 06:35:27 +00:00
parent d664e2298e
commit 22b980cc08
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
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)
SRC_DIR += V2M
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)
{
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
*/
void ethernetif_input( void *netif_arg);
void ethernetif_input2( void *netif_arg);
int ETH_BSP_Config(void);
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_FRAG 1
#define IP_REASS_MAX_PBUFS 10
#ifndef MEMP_NUM_REASSDATA
#define MEMP_NUM_REASSDATA 10
#endif
#else
#define IP_REASSEMBLY 0
#define IP_FRAG 0