AliOS Things LwIP Porting Guide - Shaofa/AliOS-Things-Certification-Manual GitHub Wiki
EN| 中文
- 1 Porting of NIC driver
- 2 Porting related to platform
- 3 Porting related to LwIP
- 4 Porting with OS
- 5 Modification of compilation script
AliOS Things provides LwIP protocol stack, and developers can complete the porting work according to the following steps.
Porting code of NIC driver can refer to Code example. It mainly concerns the following function modification :
static void low_level_init(struct netif *netif);
static err_t low_level_output(struct netif *netif, struct pbuf *p);
static struct pbuf *low_level_input(struct netif *netif);
When the modification is completed, source code needs to be stored in its corresponding platform.
Porting code related to platform can refer to Code example. The definition mainly includes type definition, size end setting and memory alignment.
If the reference implementation is consistent with your target implementation, you can copy and store it in corresponding platform.
Porting code related to LwIP can refer to Code example.
If the reference configuration is consistent with yours, you can copy and store it in corresponding platform.
Porting with OS has been completed in AliOS Things, and developers can use it directly. Implement code.
After completing the above modifications, you need to modify the related Makefile in corresponding platform. Implement code。