URL
https://opencores.org/ocsvn/hf-risc/hf-risc/trunk
Subversion Repositories hf-risc
[/] [hf-risc/] [trunk/] [software/] [app/] [test_spi.c] - Rev 16
Go to most recent revision | Compare with Previous | Blame | View Log
#include <hf-risc.h> int main(void){ int i; char buf[50] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'}; spi_setup(); spi_start(); for (i = 0; i < 10; i++) buf[i] = spi_sendrecv(buf[i]); spi_stop(); return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log