当前位置: 技术问答>linux和unix
gpio模拟spi时序的问题
来源: 互联网 发布时间:2016-10-18
本文导语: 104 bitbang_txrx_be_cpha0(struct spi_device *spi, 105 unsigned nsecs, unsigned cpol, 106 u32 word, u8 bits) 107 { 108 /* if (cpol == 0) this is SPI_MODE_0; else this is SPI_MODE_2 ...
104 bitbang_txrx_be_cpha0(struct spi_device *spi,
105 unsigned nsecs, unsigned cpol,
106 u32 word, u8 bits)
107 {
108 /* if (cpol == 0) this is SPI_MODE_0; else this is SPI_MODE_2 */
109
110 /* clock starts at inactive polarity */
111 for (word
105 unsigned nsecs, unsigned cpol,
106 u32 word, u8 bits)
107 {
108 /* if (cpol == 0) this is SPI_MODE_0; else this is SPI_MODE_2 */
109
110 /* clock starts at inactive polarity */
111 for (word