#include "xgpio.h"
#include "sleep.h"
XGpio Axi_Gpio0;
Status = XGpio_Initialize(&Axi_Gpio0, XPAR_GPIO_0_DEVICE_ID);
if (Status != XST_SUCCESS) {
xil_printf("Gpio0 Initialization Failed\r\n");
return XST_FAILURE;
}
XGpio_SetDataDirection(&Axi_Gpio0, 1, 0);
XGpio_DiscreteWrite(&Axi_Gpio0, 1,0);
usleep(2);
XGpio_DiscreteWrite(&Axi_Gpio0, 1,1);
axi-gpio的初始化配置
最新推荐文章于 2024-08-19 17:04:41 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)