Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
en:spi_dot_matrix [2016/12/09 11:29] charles.park [SPI Dot-Matrix] |
en:spi_dot_matrix [2017/01/18 17:12] charles.park [Simple Dot-matrix LED test] |
||
---|---|---|---|
Line 123: | Line 123: | ||
struct spi_ioc_transfer tr; | struct spi_ioc_transfer tr; | ||
+ | memset((void *)&tr, 0x00, sizeof(tr)); | ||
+ | | ||
tr.tx_buf = (unsigned long)tx; | tr.tx_buf = (unsigned long)tx; | ||
tr.rx_buf = (unsigned long)rx; | tr.rx_buf = (unsigned long)rx; |