lib/sw_apps/zynqmp_pmufw/src/xpfw_mod_dap.c
void ModDapInit(void)
{
	const XPfw_Module_t *DapModPtr = XPfw_CoreCreateMod();

	if (XST_SUCCESS != XPfw_CoreSetCfgHandler(DapModPtr, DapCfgInit)) {
		XPfw_Printf(DEBUG_DETAILED,"DAP: Set Cfg handler failed\r\n");
	} else if (XST_SUCCESS !=
			XPfw_CoreSetEventHandler(DapModPtr, DapEventHandler)) {
		XPfw_Printf(DEBUG_DETAILED,"DAP: Set Event handler failed\r\n");
	} else {
		/* For MISRA-C compliance */
	}
}
/*
 * 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 ModDapInit(void)
{
	const XPfw_Module_t *DapModPtr = XPfw_CoreCreateMod();
	if (XST_SUCCESS != XPfw_CoreSetCfgHandler(DapModPtr, DapCfgInit)) {
		XPfw_Printf(DEBUG_DETAILED,"DAP: Set Cfg handler failed\r\n");
	} else if (XST_SUCCESS !=
			XPfw_CoreSetEventHandler(DapModPtr, DapEventHandler)) {
		XPfw_Printf(DEBUG_DETAILED,"DAP: Set Event handler failed\r\n");
	} else {
	}
}
void ModDapInit ( void ) { const XPfw_Module_t * DapModPtr = XPfw_CoreCreateMod ( ) ; if ( XST_SUCCESS != XPfw_CoreSetCfgHandler ( DapModPtr , DapCfgInit ) ) { XPfw_Printf ( DEBUG_DETAILED , " \r \n " ) ; } else if ( XST_SUCCESS != XPfw_CoreSetEventHandler ( DapModPtr , DapEventHandler ) ) { XPfw_Printf ( DEBUG_DETAILED , " \r \n " ) ; } else { } }
Create a Mod and assign the Handlers.
Create a Mod and assign the Handlers .
/* For MISRA-C compliance */