Zbigniew Druzbacki
/
SPI_Slave
SPI slave program to enable communication between the FPGA and the STM32L432 board.
Diff: main.cpp
- Revision:
- 2:4cc880ea466d
- Parent:
- 0:8e367d6d8f03
- Child:
- 3:e33697420c4a
--- a/main.cpp Tue Feb 05 23:02:51 2019 +0000 +++ b/main.cpp Wed Feb 06 12:28:59 2019 +0000 @@ -13,11 +13,11 @@ while(1) { for(int x = 1; x < 128; x *= 2) { slaveRx = transfer_spi_slave(x); + pc.putc(slaveRx); } for(int x = 128; x > 1; x /= 2) { slaveRx = transfer_spi_slave(x); - } - - pc.printf("%d \n\r", slaveRx); + pc.putc(slaveRx); + } } }