lib/sw_apps/zynqmp_pmufw/src/xpfw_mod_em.c
void ModEmInit(void)
{
	EmModPtr = XPfw_CoreCreateMod();

	if (XST_SUCCESS != XPfw_CoreSetCfgHandler(EmModPtr, EmCfgInit)) {
		XPfw_Printf(DEBUG_DETAILED,"EM: Set Cfg handler failed\r\n");
	} else if (XST_SUCCESS !=
			XPfw_CoreSetEventHandler(EmModPtr, EmEventHandler)) {
		XPfw_Printf(DEBUG_DETAILED,"EM: Set Event handler failed\r\n");
	} else if (XST_SUCCESS !=
			XPfw_CoreSetIpiHandler(EmModPtr, EmIpiHandler,
					(u16)EM_IPI_HANDLER_ID)) {
		XPfw_Printf(DEBUG_DETAILED,"EM: Set IPI handler failed\r\n");
	}
}
/*
 * Create a Mod and assign the Handlers. We will call this function
 * from XPfw_UserStartup()
 */
Create a Mod and assign the Handlers. We will call this function
from XPfw_UserStartup()
Create a Mod and assign the Handlers . We will call this function from XPfw_UserStartup ()
void ModEmInit(void)
{
	EmModPtr = XPfw_CoreCreateMod();
	if (XST_SUCCESS != XPfw_CoreSetCfgHandler(EmModPtr, EmCfgInit)) {
		XPfw_Printf(DEBUG_DETAILED,"EM: Set Cfg handler failed\r\n");
	} else if (XST_SUCCESS !=
			XPfw_CoreSetEventHandler(EmModPtr, EmEventHandler)) {
		XPfw_Printf(DEBUG_DETAILED,"EM: Set Event handler failed\r\n");
	} else if (XST_SUCCESS !=
			XPfw_CoreSetIpiHandler(EmModPtr, EmIpiHandler,
					(u16)EM_IPI_HANDLER_ID)) {
		XPfw_Printf(DEBUG_DETAILED,"EM: Set IPI handler failed\r\n");
	}
}
void ModEmInit ( void ) { EmModPtr = XPfw_CoreCreateMod ( ) ; if ( XST_SUCCESS != XPfw_CoreSetCfgHandler ( EmModPtr , EmCfgInit ) ) { XPfw_Printf ( DEBUG_DETAILED , " \r \n " ) ; } else if ( XST_SUCCESS != XPfw_CoreSetEventHandler ( EmModPtr , EmEventHandler ) ) { XPfw_Printf ( DEBUG_DETAILED , " \r \n " ) ; } else if ( XST_SUCCESS != XPfw_CoreSetIpiHandler ( EmModPtr , EmIpiHandler , ( u16 ) EM_IPI_HANDLER_ID ) ) { XPfw_Printf ( DEBUG_DETAILED , " \r \n " ) ; } }
Create a Mod and assign the Handlers.
Create a Mod and assign the Handlers .