/* The function sets the frequency of the ADCCLK by configuring the DCLK to ADCCLK ratio in the Configuration Register #2 */
void XAdcPs_SetAdcClkDivisor(XAdcPs *InstancePtr, u8 Divisor)
/* The function sets the frequency of the ADCCLK by configuring the DCLK to ADCCLK ratio in the Configuration Register #2 */
void XAdcPs_SetAdcClkDivisor(XAdcPs *InstancePtr, u8 Divisor)
{
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	XAdcPs_WriteInternalReg(InstancePtr, XADCPS_CFR2_OFFSET,
				((u32)Divisor << XADCPS_CFR2_CD_SHIFT));
}