<h1>wdttb v3_0</h1><p>The Xilinx watchdog timer/timebase component supports the Xilinx watchdog timer/timebase hardware. More detailed description of the driver operation for each function can be found in the <aclass="el"href="xwdttb_8c.html">xwdttb.c</a> file.</p>
<p>The Xilinx watchdog timer/timebase driver supports the following features:</p>
<ul>
<li>Polled mode</li>
<li>enabling and disabling (if allowed by the hardware) the watchdog timer</li>
<li>restarting the watchdog.</li>
<li>reading the timebase.</li>
</ul>
<p>It is the responsibility of the application to provide an interrupt handler for the timebase and the watchdog and connect them to the interrupt system if interrupt driven mode is desired.</p>
<p>The watchdog timer/timebase component ALWAYS generates an interrupt output when:</p>
<ul>
<li>the watchdog expires the first time</li>
<li>the timebase rolls over</li>
</ul>
<p>and ALWAYS generates a reset output when the watchdog timer expires a second time. This is not configurable in any way from the software driver's perspective.</p>
<p>The Timebase is reset to 0 when the Watchdog Timer is enabled.</p>
<p>If the hardware interrupt signal is not connected, polled mode is the only option (using IsWdtExpired) for the watchdog. Reset output will occur for the second watchdog timeout regardless. Polled mode for the timebase rollover is just reading the contents of the register and seeing if the MSB has transitioned from 1 to 0.</p>
<p>The IsWdtExpired function is used for polling the watchdog timer and it is also used to check if the watchdog was the cause of the last reset. In this situation, call Initialize then call WdtIsExpired. If the result is true watchdog timeout caused the last system reset. It is then acceptable to further initialize the component which will reset this bit.</p>
<p>This driver is intended to be RTOS and processor independent. It works with physical addresses only. Any needs for dynamic memory management, threads or thread mutual exclusion, virtual memory, or cache control must be satisfied by the layer above this driver.</p>