Skip to content

Instantly share code, notes, and snippets.

@openedev
Last active April 19, 2020 06:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save openedev/27473743cb66d2ce5e78ae6fd72da347 to your computer and use it in GitHub Desktop.
Save openedev/27473743cb66d2ce5e78ae6fd72da347 to your computer and use it in GitHub Desktop.
sifive tx
/* Enqueue n_words for transmission */
for (i = 0; i < n_words; i++) {
if (!tx_ptr)
sifive_spi_tx(spi, NULL);
else
sifive_spi_tx(spi, tx_ptr++);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment