Dear Expert.
My customer is doing the porting of CPSW2G MCAL driver to AUTOSAR stack.
ETHÐTRCV should be the modules to port to AUTOSAR, and DMA will be used. there would be work flow like below:
Eth_openCpsw -> CpswDma_open - > UdmaInitPrms_init -> UdmaOsalPrms_init (Set the function pointers)
Eth_openCpsw -> CpswDma_open - > Udma_init -> Udma_eventRegister - > Udma_osalRegisterIntr & Udma_osalMutexCreate
From above, I see that the “OSAL_RegisterInterrupt” & “SemaphoreP_create” are called from the Ethernet driver context due to the UDMA so:
- Does that mean we need to include/compile the files of ”\ti\osal\src\nonos” in the SDK ?
- If the answer is no, do we need to implement these functions?
- If the answer is yes, have you tried this solution before (using different Os from TI RTOS) and shall it work out of the box?
Note:
- OSAL register interrupt & OSAL create mutex are only examples for the triggered functions
Thanks a lot!
yong