XilinxProcessorIPLib/drivers/aiengine/src/lib/xaielib.c
void XAieLib_MemFinish(XAieLib_MemInst *XAieLib_MemInstPtr)
{
#ifdef __AIESIM__
#elif defined __AIEBAREMTL__
	free((void *)XAieLib_MemInstPtr->Vaddr);
	free(XAieLib_MemInstPtr);
#else
	XAieIO_Mem *MemInstPtr = (XAieIO_Mem *)XAieLib_MemInstPtr;
	XAieIO_MemFinish(MemInstPtr);
#endif
}
/*****************************************************************************/
/**
*
* This is the memory function to free the platform specific memory instance
*
* @param	XAieLib_MemInstPtr: Memory instance pointer.
*
* @return	None.
*
* @note		@IO_MemInstPtr is freed and invalid after this function.
*
*******************************************************************************/
This is the memory function to free the platform specific memory instance
This is the memory function to free the platform specific memory instance
void XAieLib_MemFinish(XAieLib_MemInst *XAieLib_MemInstPtr)
{
#ifdef __AIESIM__
#elif defined __AIEBAREMTL__
	free((void *)XAieLib_MemInstPtr->Vaddr);
	free(XAieLib_MemInstPtr);
#else
	XAieIO_Mem *MemInstPtr = (XAieIO_Mem *)XAieLib_MemInstPtr;
	XAieIO_MemFinish(MemInstPtr);
#endif
}
void XAieLib_MemFinish ( XAieLib_MemInst * XAieLib_MemInstPtr ) { #ifdef __AIESIM__ #elif defined __AIEBAREMTL__ free ( ( void * ) XAieLib_MemInstPtr -> Vaddr ) ; free ( XAieLib_MemInstPtr ) ; #else XAieIO_Mem * MemInstPtr = ( XAieIO_Mem * ) XAieLib_MemInstPtr ; XAieIO_MemFinish ( MemInstPtr ) ; #endif }
This is the memory function to free the platform specific memory instance
This is the memory function to free the platform specific memory instance