XilinxProcessorIPLib/drivers/dfeccf/examples/xdfesi570_mgt.c
void XDfeSi570_SetPL()
{
#ifdef __BAREMETAL__
	Xil_Out32(0xFD615000U, 0U);
	Xil_In32(0xac001000U);
	Xil_In32(0xac001008U);
	Xil_Out32(0xac001000U, 0U);
	Xil_In32(0xac001008U);
#else
	system("devmem 0xFD615000 w 0");
	system("devmem 0xac001000");
	system("devmem 0xac001008");
	system("devmem 0xac001000 32 0");
	system("devmem 0xac001008");
#endif
}
/****************************************************************************/
/**
*
* This function resets PL and make it use the new clock.
*
* @param	None
*
* @return	None
*
* @note		None
*
****************************************************************************/
This function resets PL and make it use the new clock.
This function resets PL and make it use the new clock .
void XDfeSi570_SetPL()
{
#ifdef __BAREMETAL__
	Xil_Out32(0xFD615000U, 0U);
	Xil_In32(0xac001000U);
	Xil_In32(0xac001008U);
	Xil_Out32(0xac001000U, 0U);
	Xil_In32(0xac001008U);
#else
	system("devmem 0xFD615000 w 0");
	system("devmem 0xac001000");
	system("devmem 0xac001008");
	system("devmem 0xac001000 32 0");
	system("devmem 0xac001008");
#endif
}
void XDfeSi570_SetPL ( ) { #ifdef __BAREMETAL__ Xil_Out32 ( 0xFD615000U , 0U ) ; Xil_In32 ( 0xac001000U ) ; Xil_In32 ( 0xac001008U ) ; Xil_Out32 ( 0xac001000U , 0U ) ; Xil_In32 ( 0xac001008U ) ; #else system ( " " ) ; system ( " " ) ; system ( " " ) ; system ( " " ) ; system ( " " ) ; #endif }
This function resets PL and make it use the new clock.
This function resets PL and make it use the new clock .