zynq中spi的配置
二、实际使用引脚
三、引脚分配
set_property PACKAGE_PIN AC11 [get_ports emio_spi0_m_i_0]
set_property PACKAGE_PIN M8 [get_ports emio_spi0_m_o_0]
set_property PACKAGE_PIN P9 [get_ports emio_spi0_sclk_o_0]
set_property PACKAGE_PIN B13 [get_ports spi_tx_ss_io]
set_property IOSTANDARD LVCMOS33 [get_ports emio_spi0_m_i_0]
set_property IOSTANDARD LVCMOS33 [get_ports emio_spi0_m_o_0]
set_property IOSTANDARD LVCMOS33 [get_ports emio_spi0_sclk_o_0]
set_property IOSTANDARD LVCMOS33 [get_ports spi_tx_ss_io]
四、vitis初始化
XSpiPs SpiInstance;
int SpiPs_Init(XSpiPs *SpiInstancePtr,u16 SpiDeviceId )
{
int Status;
XSpiPs_Config *SpiConfig;
/*
* Initialize the SPI driver so that it's