Change-1 : ENET UDMA API changes
The ENET UDMA API has undergone some changes, with the primary goal of enhancing overall code quality and adhering to functional safety standards. These changes aim to minimize the use of error-prone constructs and eliminate the utilization of void pointers.
Old API Header | New API Header |
---|---|
1. Initialize RX channel open parameters: EnetDma_initRxChParams(void *pRxChCfg) | EnetUdma_initRxFlowParams(EnetUdma_OpenRxFlowPrms *pRxFlowPrms) |
2. Enet DMA open RX channel: EnetDma_openRxCh(EnetDma_Handle hDma, const void *pRxChCfg) | EnetUdma_openRxFlow(EnetDma_Handle hDma,const EnetUdma_OpenRxFlowPrms *pRxFlowPrms) |
3. Enet DMA close RX channel: EnetDma_closeRxCh(EnetDma_RxChHandle hRxCh, EnetDma_PktQ *fq, EnetDma_PktQ *cq) | EnetUdma_closeRxFlow(EnetDma_RxChHandle hRxCh,EnetDma_PktQ *fq,EnetDma_PktQ *cq) |
4. Initialize TX channel open parameters: EnetDma_initTxChParams(void *pTxChCfg) | EnetUdma_initTxChParams(EnetUdma_OpenTxChPrms *pTxChPrms) |
5. Enet DMA open TX channel: EnetDma_openTxCh(EnetDma_Handle hDma, const void *pTxChCfg) | EnetUdma_openTxCh(EnetDma_Handle hDma, const EnetUdma_OpenTxChPrms *pTxChPrms) |
6. Enet DMA close TX channel: EnetDma_closeTxCh(EnetDma_TxChHandle hTxCh, EnetDma_PktQ *fq, EnetDma_PktQ *cq) | EnetUdma_closeTxCh(EnetDma_TxChHandle hTxCh, EnetDma_PktQ *fq, EnetDma_PktQ *cq) |
Change-1 : Aligning with ENET UDMA changes
Change-2 : Aligning with ENET OSAL changes
The following changes have been made in the update from SDK version 11.00 to the latest version 11.1:
virtnetif_lwipif.c
file in the RTOS Client example Ethernet Firmware has been modified to use the new ENET UDMA APIs.main.c
and app_cpswconfighandler.c
in the apps/app_remoteswitchcfg_server/ folder now utilize the EnetDma_Cfg structure, replacing the EnetCpdma_Cfg structure.CpswRemoteApp_setTxChPrms()
and CpswRemoteApp_setRxFlowPrms()
functions in virtnetif_lwipif.c.
To align with the Enet-lld OSPI lib changes, the EthFw code has undergone the following changes:
Enet_initOsalCfg()
API have been removed.Enet_init(&osalPrms, &utilsPrms)
have been changed to Enet_init(&utilsPrms)
.