|
5 | 5 | With an STM32 board with Ethernet compatibility, this library allows a STM32 |
6 | 6 | board (NUCLEO, DISCOVERY, ...) to connect to the internet. |
7 | 7 |
|
8 | | -For more information about this library please visit us at |
9 | | -http://www.arduino.cc/en/Reference/Ethernet |
| 8 | +This library follows the Ethernet API from Arduino.<br> |
| 9 | +For more information about it please visit: http://www.arduino.cc/en/Reference/Ethernet |
10 | 10 |
|
11 | 11 | ## Note |
12 | 12 |
|
13 | | -The library is based on LwIP, a Lightweight TCP/IP stack. |
| 13 | +The library is based on LwIP, a Lightweight TCP/IP stack, available here: |
| 14 | + |
14 | 15 | http://git.savannah.gnu.org/cgit/lwip.git |
| 16 | + |
15 | 17 | The LwIP has been ported as Arduino library. The STM32Ethernet library depends |
16 | 18 | on it. |
17 | 19 |
|
18 | | -EthernetClass::maintain() in no more required to renew IP address from DHCP. |
| 20 | +`EthernetClass::maintain()` in no more required to renew IP address from DHCP.<br> |
19 | 21 | It is done automatically by the LwIP stack in a background task. |
20 | 22 |
|
21 | | -An Idle task is required by the LwIP stack to handle timer and data reception. |
22 | | -This idle task is called inside the main loop in background by the function |
23 | | -stm32_eth_scheduler(). Be careful to not lock the system inside the function |
24 | | -loop() where LwIP could never be updated. Call Ethernet::schedule() performs an |
25 | | -update of the LwIP stack. |
| 23 | +An Idle task is required by the LwIP stack to handle timer and data reception.<br> |
| 24 | +This idle task is called inside a timer callback each 1 ms by the |
| 25 | +function `stm32_eth_scheduler()`.<br> |
| 26 | +A `DEFAULT_ETHERNET_TIMER` is set in the library to `TIM14`.<br> |
| 27 | +`DEFAULT_ETHERNET_TIMER` can be redefined in the core variant.<br> |
| 28 | +Be careful to not lock the system in a function which disabling IRQ.<br> |
| 29 | +Call `Ethernet::schedule()` performs an update of the LwIP stack.<br> |
26 | 30 |
|
27 | 31 | ## Wiki |
28 | 32 |
|
|
0 commit comments