The STM32Ethernet library allows an STM32 board to connect to the internet.
It is based on the Ethernet library provides by Arduino.
This library is fully compatible with Arduino Ethernet library (https://www.arduino.cc/en/Reference/Ethernet).
Examples allow a quickstart.
This library could only be used with STM32 board with Ethernet compatibility.
Ex:
The LwIP library must be installed to use the STM32Ethernet library.
Both libraries are available through the Arduino Libraries manager.
Click on "Sketch" menu and then "Include Library > Manage Libraries..."
Search "LwIP" then install "LwIP" and "STM32Ethernet"
Note
The library is based on LwIP, a Lightweight TCP/IP stack. http://git.savannah.gnu.org/cgit/lwip.git http://lwip.wikia.com/wiki/LwIP_Wiki
EthernetClass::maintain() in no more required to renew IP address from DHCP. It is done automatically by the LwIP stack in a background task.
An Idle task is required by the LwIP stack to handle timer and data reception. This idle task is called inside a timer callback each 1 ms by the function stm32_eth_scheduler()
. A DEFAULT_ETHERNET_TIMER
is set in the library to TIM14
. DEFAULT_ETHERNET_TIMER
can be redefined in the core variant. Be careful to not lock the system in a function which disabling IRQ. Call Ethernet::schedule()
performs an update of the LwIP stack.
STM32Ethernet
https://github.com/stm32duino/STM32Ethernet
LwIP
https://github.com/stm32duino/LwIP
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4