21ic问答首页 - TAG - M0518
-
m0518,spi怎么连外设
求救大佬,新唐m0518,spi怎么读写一个字节, 我这样不行, u1_t hwspi_ReadWriteByte(u1_t TxData) { uint8_t Data = 0; SPI_WRITE_TX(SPI0,TxData); while(SPI_IS_BUSY(SPI0)); SPI_TRIGGER(SPI0); Data = SPI_READ_RX(SPI0); return Data; }
2598浏览量 3回复量 关注量 -
m0518,spi怎么连外设 sos
求救大佬,新唐m0518,spi怎么读写一个字节, 我这样不行, u1_t hwspi_ReadWriteByte(u1_t TxData) { uint8_t Data = 0; SPI_WRITE_TX(SPI0,TxData); while(SPI_IS_BUSY(SPI0)); SPI_TRIGGER(SPI0); Data = SPI_READ_RX(SPI0); return Data; }
3924浏览量 0回复量 关注量