Selaa lähdekoodia

add function for deinit lwip timers

xueyunfei 4 vuotta sitten
vanhempi
sitoutus
e451a9b2e1
2 muutettua tiedostoa jossa 11 lisäystä ja 1 poistoa
  1. 1 1
      components/lwip/lwip
  2. 10 0
      docs/en/api-guides/lwip.rst

+ 1 - 1
components/lwip/lwip

@@ -1 +1 @@
-Subproject commit 2195f7416fb3136831babf3e96c027a73075bd4f
+Subproject commit 2749568fe15df2003f6c3f37f0dfd44f8f01fcd6

+ 10 - 0
docs/en/api-guides/lwip.rst

@@ -358,6 +358,16 @@ The default lwIP implementation is to have these timers enabled all the time, ev
 
 To return to the default lwIP behaviour (always-on timers), disable :ref:`CONFIG_LWIP_TIMERS_ONDEMAND`.
 
+Lwip timers API
++++++++++++++++
+
+When users are not using WiFi, these APIs provide users with the ability to turn off LwIP timer to reduce power consumption.
+
+The following API functions are supported. For full details see :component_file:`lwip/lwip/src/include/lwip/timeouts.h`.
+
+- ``sys_timeouts_init()``
+- ``sys_timeouts_deinit()``
+
 Abort TCP connections when IP changes
 +++++++++++++++++++++++++++++++++++++