|
发表于 2020-10-20 01:15:07
|
显示全部楼层
我用的是CMSIS-Driver里的:
- static void
- ethernetif_input(struct netif *netif)
- {
- struct ethernetif *eth = netif->state;
- struct pbuf *p;
- /* move received packet into a new pbuf */
- sys_sem_wait (ð->sem);
- p = low_level_input(netif);
- sys_sem_signal (ð->sem);
- /* if no packet could be read, silently ignore this */
- if (p != NULL) {
- /* pass all packets to ethernet_input, which decides what packets it supports */
- if (netif->input(p, netif) != ERR_OK) {
- LWIP_DEBUGF(NETIF_DEBUG, ("ethernetif_input: IP input error\n"));
- pbuf_free(p);
- p = NULL;
- }
- return;
- }
- eth->rx_event = false;
- }
复制代码
LwIP网络教程开始更新,使用MDK的RTE环境开发,配套RTX5和FreeRTOS两个版本,更新至第7章(2020-05-03)
http://www.armbbs.cn/forum.php?m ... 5874&fromuid=58
(出处: 硬汉嵌入式论坛)
|
|