vitis例程的源代码可以在Vitis IDE的Explorer中查看。
具体操作步骤如下:
- 选择“Explorer”,然后选择相应的“Platform工程名”。
- 在“Platform.spr”中找到“Board Support Package”,点击两次以显示“Board Support Package”。
- 拖动滚动条找到“GPIO部分”,然后点击“ Documentation”以查看GPIO的API文档。
- 点击“ Import Examples”,在弹出的界面中选择所需的例程,例如“xgpiops_intr_example.c”或“xgpiops_polled_example.c”。
- 在“Project Explorer”中,新增的“pio_mio_bsp_xgpiops_polled_example_1”目录中,打开“xgpiops_polled_example.c”文件即可查看例程源代码。