This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM2431: About the tick used in LWIP

Part Number: AM2431

Tool/software:

The SDK i use is mcu_plus_sdk_am243x_08_03_00_18

I would like to ask whether it is necessary to set the current tick to 1ms when using LWIP?

The phenomenon in my project is that when the tick is set to 10ms, various polling times in LWIP seem to have increased.

For example, the following polling .

static int LWIPIF_LWIP_start(struct netif *netif)

{

ClockP_Params_init(&clkPrms);
clkPrms.start = 0;
clkPrms.period = ENETLWIPAPP_POLL_PERIOD;(#define ENETLWIPAPP_POLL_PERIOD      500)
clkPrms.args = &hLwip2Enet->pollLinkSemObj;
clkPrms.callback = &LWIPIF_LWIP_postPollLink;
clkPrms.timeout = ENETLWIPAPP_POLL_PERIOD;

/* Creating timer and setting timer callback function*/
status = ClockP_construct(&hLwip2Enet->pollLinkClkObj,
&clkPrms);

}

This polling is used to detect the link status. Currently, my tick is 10ms, so the polling cycle here becomes 5s.

My question is:

  1. if I want to use LWIP, do I need to set the current tick to 1ms?

  2. If I set the tick to 10ms, how should I adjust the polling interval for the related polling operations?