您好,
我的客户指的是在原始帖子中介绍的LwIP_Wiki (请参阅上文)。
在Wiki内部,有用于非操作系统(单线程)系统的简单主环路。
https://lwip.fandom.com/wiki/LwIP_with_or_without_an_operating_system
while(1) {
/* poll the driver, get any outstanding frames, alloc memory for them, and
* call netif->input, which is actually ip_input().
* This may be called differently, depending on the underlying driver.
* Eg. on STM it's ethernetif_input(&gnetif) */
poll_driver(netif);
/* Handle all system timeouts for all core protocols */
sys_check_timeouts();
}客户询问RM57L的"poll_driver (netif)"等效函数是什么。
上面代码中的注释提到"根据基础驱动程序,这可能被调用不同。 例如,在STM上,它是ethernetif_input(&gnetif)"。
客户发现在LwIP示例中有名为"ethernetif_input()"的函数。
\Hercules_Examples-master\Application\LwIP\v.00.04 00\lwip-v 1.4 .1\src\netif\ethernetif.c
这是正确的吗?
谢谢,此致,
佐治一郎