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 |
---|---|---|
iic | <Vitis Install Directory>/data/embedded/XilinxProcessorIPLib/drivers/iic | https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/iic |
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/xilinx-v2020.1/XilinxProcessorIPLib/drivers/iic |
The driver source code is organized into different folders. The table below shows the ospipsv driver source organization.
Directory | Description |
---|---|
doc | Provides the API and data structure details |
data | Driver .tcl and .mdd file |
examples | Example applications that show how to use the driver features |
src | Driver source files |
For a full list of features supported by this IP, please refer https://www.xilinx.com/support/documentation/ip_documentation/axi_iic/v2_0/pg090-axi-iic.pdf
Refer to the driver examples directory for various example applications that exercise the different features of the driver. Each application is linked in the table below. The following sections describe the usage and expected output of the various applications. These example applications can be imported into the Vitis IDE from the Board Support Package settings tab.
Examples path: https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/iic/examples
Test name | Example source | Description |
---|---|---|
AXI IIC eeprom example in dynamic mode | xiic_dynamic_eeprom_example.c | This example does read/writes using AXI IIC dynamic mode |
AXI IIC eeprom example in standard mode | xiic_eeprom_example.c | This example does read/writes using AXI IIC standard mode |
AXI IIC repeated start example | xiic_repeated_start_example.c | This example does read/writes with repeated start. |
AXI IIC eeprom example in dynamic mode
This example does read/writes using AXI IIC dynamic modeSuccessfully ran IIC dynamic eeprom Example |
Successfully ran IIC eeprom Example |
Successfully ran IIC repeated start Example |