Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (*_spi_cmd&SPI_USR);
- for (i=0; i < rem; ++i) *spi_w++ = val32;
- *_spi_mosi_dlen = (rem << 3) - 1;
- *_spi_cmd = SPI_USR;
- if (!count) return; //{while (*_spi_cmd&SPI_USR); return; }
- i = i>>1; while(i++<8) *spi_w++ = val32;
- ...
- if(spi_mode==1||spi_mode==2) {
- *_spi_user = SPI_USR_MOSI | SPI_USR_MISO | SPI_DOUTDIN | SPI_CK_OUT_EDGE;
- } else {
- *_spi_user = SPI_USR_MOSI | SPI_USR_MISO | SPI_DOUTDIN;
- }
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement