XilinxProcessorIPLib/drivers/wdtps/src/xwdtps.c
void XWdtPs_Stop(XWdtPs *InstancePtr)
{
	u32 Register;

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

	/*
	 * Read the contents of the ZMR register.
	 */
	Register = XWdtPs_ReadReg(InstancePtr->Config.BaseAddress,
				 XWDTPS_ZMR_OFFSET);

	/*
	 * Disable the Timer field in the register and
	 * Set the access key for the write to be done the register.
	 */
	Register &= ~((u32)XWDTPS_ZMR_WDEN_MASK);
	Register |= XWDTPS_ZMR_ZKEY_VAL;

	/*
	 * Update the ZMR with the new value.
	 */
	XWdtPs_WriteReg(InstancePtr->Config.BaseAddress, XWDTPS_ZMR_OFFSET,
			  Register);

	InstancePtr->IsStarted = 0U;
}
/****************************************************************************/
/**
*
* Disable the watchdog timer.
*
* It is the caller's responsibility to disconnect the interrupt handler
* of the watchdog timer from the interrupt source, typically an interrupt
* controller, and disable the interrupt in the interrupt controller.
*
* @param	InstancePtr is a pointer to the XWdtPs instance.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
Disable the watchdog timer.
It is the caller's responsibility to disconnect the interrupt handler
of the watchdog timer from the interrupt source, typically an interrupt
controller, and disable the interrupt in the interrupt controller.
Disable the watchdog timer . It is the caller ' s responsibility to disconnect the interrupt handler of the watchdog timer from the interrupt source typically an interrupt controller and disable the interrupt in the interrupt controller .
void XWdtPs_Stop(XWdtPs *InstancePtr)
{
	u32 Register;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Register = XWdtPs_ReadReg(InstancePtr->Config.BaseAddress,
				 XWDTPS_ZMR_OFFSET);
	Register &= ~((u32)XWDTPS_ZMR_WDEN_MASK);
	Register |= XWDTPS_ZMR_ZKEY_VAL;
	XWdtPs_WriteReg(InstancePtr->Config.BaseAddress, XWDTPS_ZMR_OFFSET,
			  Register);
	InstancePtr->IsStarted = 0U;
}
void XWdtPs_Stop ( XWdtPs * InstancePtr ) { u32 Register ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Register = XWdtPs_ReadReg ( InstancePtr -> Config . BaseAddress , XWDTPS_ZMR_OFFSET ) ; Register &= ~ ( ( u32 ) XWDTPS_ZMR_WDEN_MASK ) ; Register |= XWDTPS_ZMR_ZKEY_VAL ; XWdtPs_WriteReg ( InstancePtr -> Config . BaseAddress , XWDTPS_ZMR_OFFSET , Register ) ; InstancePtr -> IsStarted = 0U ; }
Disable the watchdog timer.
Disable the watchdog timer .
/*
	 * Read the contents of the ZMR register.
	 */ /*
	 * Disable the Timer field in the register and
	 * Set the access key for the write to be done the register.
	 */ /*
	 * Update the ZMR with the new value.
	 */