XilinxProcessorIPLib/drivers/qspips/src/xqspips_options.c
u8 XQspiPs_GetClkPrescaler(XQspiPs *InstancePtr)
{
	u32 ConfigReg;

	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

	ConfigReg = XQspiPs_ReadReg(InstancePtr->Config.BaseAddress,
				      XQSPIPS_CR_OFFSET);

	ConfigReg &= XQSPIPS_CR_PRESC_MASK;

	return (u8)(ConfigReg >> XQSPIPS_CR_PRESC_SHIFT);
}
/*****************************************************************************/
/**
*
* This function gets the clock prescaler of an QSPI device.
*
* @param	InstancePtr is a pointer to the XQspiPs instance.
*
* @return	The prescaler value.
*
* @note		None.
*
*
******************************************************************************/
This function gets the clock prescaler of an QSPI device.
This function gets the clock prescaler of an QSPI device .
u8 XQspiPs_GetClkPrescaler(XQspiPs *InstancePtr)
{
	u32 ConfigReg;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	ConfigReg = XQspiPs_ReadReg(InstancePtr->Config.BaseAddress,
				      XQSPIPS_CR_OFFSET);
	ConfigReg &= XQSPIPS_CR_PRESC_MASK;
	return (u8)(ConfigReg >> XQSPIPS_CR_PRESC_SHIFT);
}
u8 XQspiPs_GetClkPrescaler ( XQspiPs * InstancePtr ) { u32 ConfigReg ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; ConfigReg = XQspiPs_ReadReg ( InstancePtr -> Config . BaseAddress , XQSPIPS_CR_OFFSET ) ; ConfigReg &= XQSPIPS_CR_PRESC_MASK ; return ( u8 ) ( ConfigReg >> XQSPIPS_CR_PRESC_SHIFT ) ; }
This function gets the clock prescaler of an QSPI device.
This function gets the clock prescaler of an QSPI device .