The source code for the driver is included with the Vitis Unified Software Platform installation, as well as being available in the Xilinx Github repository.
Driver Name | Path in Vitis | Path in GitHub |
---|---|---|
scuwdt | <Vitis Install Directory>/data/embedded/XilinxProcessorIPLib/drivers/scuwdt | https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/scuwdt |
Note: To view the sources for a particular release, use the rel-version tag in github. For example, for the 2020.1 release, the proper version of the code is: https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/scuwdt |
The driver source code is organized into different folders. The table below shows the scuwdt driver source organization.
Directory | Description |
---|---|
src | Driver source files |
examples | Example applications that show how to use the driver features |
doc | Provides the API and data structure details |
data | Driver .tcl and .mdd file |
For a full list of features supported by this IP, please refer Chapter 14: Timers and clocks in Zynqmp Trm
None
Examples Path:
https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/scuwdt/examples
Test Name | Example source | Description |
---|---|---|
Polled | xscuwdt_polled_example.c | This example tests the functioning of the Scu Private WDT driver and hardware in Timer mode using polled mode. |
Interrupt | xscuwdt_intr_example.c | This example tests the functioning of the Scu Private WDT driver and hardware in Timer mode using interrupt mode. |
Expected Output
SCU WDT Polled Mode Example Test Successfully ran SCU WDT Polled Mode Example Test |
SCU WDT Interrupt Example Test Successfully ran SCU WDT Interrupt Example Test |