
SPI slave program to enable communication between the FPGA and the STM32L432 board.
Diff: DMA_SPI.cpp
- Revision:
- 14:7bbaafa22f8d
- Parent:
- 13:c7e8e277f884
- Child:
- 15:791f35b0f220
--- a/DMA_SPI.cpp Fri Apr 19 18:43:39 2019 +0000 +++ b/DMA_SPI.cpp Sun May 05 01:08:22 2019 +0000 @@ -263,11 +263,11 @@ if(x < 7) { //Data is only loaded in first 7 places if(x == 0) { //IMU ID is loaded in array position 0 data_to_transmit[x] = IMU_Data_Array[x]; //Load the IMU data for transmission - // data_to_transmit[x] = 1; //Test Input + //data_to_transmit[x] = 1; //Test Input } else { //Rest is loaded in the following order: x, y, z data_to_transmit[x] = IMU_Data_Array[x]; //Load the IMU data for transmission - //data_to_transmit[x] = 48+x; //Test Input + //data_to_transmit[x] = 770 + ((x - 1) * 514); //Test Input } } else { //After 7 positions have been filled, the rest is filled with zeros