-
m0518,spi怎么连外设
求救大佬,新唐m0518,spi怎么读写一个字节,我这样不行,u1_thwspi_ReadWriteByte(u1_tTxData){uint8_tData=0;SPI_WRITE_TX(SPI0,TxData);while(SPI_IS_BUSY(SPI0));SPI_TRIGGER(SPI0);Data=SPI_READ_RX(SPI0);returnData;}
2020-12-22 3 -
m0518,spi怎么连外设
求救大佬,新唐m0518,spi怎么读写一个字节,我这样不行,u1_thwspi_ReadWriteByte(u1_tTxData){uint8_tData=0;SPI_WRITE_TX(SPI0,TxData);while(SPI_IS_BUSY(SPI0));SPI_TRIGGER(SPI0);Data=SPI_READ_RX(SPI0);returnData;}
2020-12-22 0