XilinxProcessorIPLib/drivers/wdtps/src/xwdtps.c
void XWdtPs_DisableOutput(XWdtPs *InstancePtr, u8 Signal)
{
	u32 Register;

	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid((Signal == XWDTPS_RESET_SIGNAL) ||
			(Signal == XWDTPS_IRQ_SIGNAL));

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

	if (Signal == XWDTPS_RESET_SIGNAL) {
		/*
		 * Disable the field in the register.
		 */
		Register &= ~((u32)XWDTPS_ZMR_RSTEN_MASK);

	} else {
		/*
		 * Disable the field in the register.
		 */
		Register &= ~((u32)XWDTPS_ZMR_IRQEN_MASK);

	}

	/*
	 * Set the access key so the write takes place.
	 */
	Register |= XWDTPS_ZMR_ZKEY_VAL;

	/*
	 * Update the ZMR with the new value.
	 */
	XWdtPs_WriteReg(InstancePtr->Config.BaseAddress, XWDTPS_ZMR_OFFSET,
			  Register);
}
/****************************************************************************/
/**
*
* Disables the indicated signal/output.
* Performs a read/modify/write cycle to update the value correctly.
*
* @param	InstancePtr is a pointer to the XWdtPs instance.
* @param	Signal is the desired signal/output.
*		Valid Signal Values are XWDTPS_RESET_SIGNAL and
*		XWDTPS_IRQ_SIGNAL
*		Only one of them can be specified at a time.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
Disables the indicated signal/output.
Performs a read/modify/write cycle to update the value correctly.
Disables the indicated signal / output . Performs a read / modify / write cycle to update the value correctly .
void XWdtPs_DisableOutput(XWdtPs *InstancePtr, u8 Signal)
{
	u32 Register;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid((Signal == XWDTPS_RESET_SIGNAL) ||
			(Signal == XWDTPS_IRQ_SIGNAL));
	Register = XWdtPs_ReadReg(InstancePtr->Config.BaseAddress,
				 XWDTPS_ZMR_OFFSET);
	if (Signal == XWDTPS_RESET_SIGNAL) {
		Register &= ~((u32)XWDTPS_ZMR_RSTEN_MASK);
	} else {
		Register &= ~((u32)XWDTPS_ZMR_IRQEN_MASK);
	}
	Register |= XWDTPS_ZMR_ZKEY_VAL;
	XWdtPs_WriteReg(InstancePtr->Config.BaseAddress, XWDTPS_ZMR_OFFSET,
			  Register);
}
void XWdtPs_DisableOutput ( XWdtPs * InstancePtr , u8 Signal ) { u32 Register ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Xil_AssertVoid ( ( Signal == XWDTPS_RESET_SIGNAL ) || ( Signal == XWDTPS_IRQ_SIGNAL ) ) ; Register = XWdtPs_ReadReg ( InstancePtr -> Config . BaseAddress , XWDTPS_ZMR_OFFSET ) ; if ( Signal == XWDTPS_RESET_SIGNAL ) { Register &= ~ ( ( u32 ) XWDTPS_ZMR_RSTEN_MASK ) ; } else { Register &= ~ ( ( u32 ) XWDTPS_ZMR_IRQEN_MASK ) ; } Register |= XWDTPS_ZMR_ZKEY_VAL ; XWdtPs_WriteReg ( InstancePtr -> Config . BaseAddress , XWDTPS_ZMR_OFFSET , Register ) ; }
Disables the indicated signal/output.
Disables the indicated signal / output .
/*
	 * Read the contents of the ZMR register.
	 */ /*
		 * Disable the field in the register.
		 */ /*
		 * Disable the field in the register.
		 */ /*
	 * Set the access key so the write takes place.
	 */ /*
	 * Update the ZMR with the new value.
	 */