lib/sw_apps/openamp_rpc_demo/src/system/freertos/machine/zynq7/helper.c
int init_system(void)
{
	int ret;
	struct metal_init_params metal_param = METAL_INIT_DEFAULTS;

	/* Low level abstraction layer for openamp initialization */
	metal_init(&metal_param);

	/* configure the global interrupt controller */
	app_gic_initialize();

	/* Initialize metal Xilinx IRQ controller */
	ret = metal_xlnx_irq_init();
	if (ret) {
		xil_printf("%s: Xilinx metal IRQ controller init failed.\n",
			__func__);
	}

	return ret;
}
/* Main hw machinery initialization entry point, called from main()*/
/* return 0 on success */
Main hw machinery initialization entry point, called from main()
return 0 on success
Main hw machinery initialization entry point called from main () return 0 on success
int init_system(void)
{
	int ret;
	struct metal_init_params metal_param = METAL_INIT_DEFAULTS;
	metal_init(&metal_param);
	app_gic_initialize();
	ret = metal_xlnx_irq_init();
	if (ret) {
		xil_printf("%s: Xilinx metal IRQ controller init failed.\n",
			__func__);
	}
	return ret;
}
int init_system ( void ) { int ret ; struct metal_init_params metal_param = METAL_INIT_DEFAULTS ; metal_init ( & metal_param ) ; app_gic_initialize ( ) ; ret = metal_xlnx_irq_init ( ) ; if ( ret ) { xil_printf ( " \n " , __func__ ) ; } return ret ; }
Main hw machinery initialization entry point, called from main()
return 0 on success
Main hw machinery initialization entry point called from main () return 0 on success
/* Low level abstraction layer for openamp initialization */ /* configure the global interrupt controller */ /* Initialize metal Xilinx IRQ controller */