
SPI slave program to enable communication between the FPGA and the STM32L432 board.
Diff: DMA_SPI.cpp
- Revision:
- 12:3e7da86a49ff
- Parent:
- 11:366f1186c121
- Child:
- 13:c7e8e277f884
--- a/DMA_SPI.cpp Tue Mar 19 01:26:11 2019 +0000 +++ b/DMA_SPI.cpp Mon Mar 25 02:15:44 2019 +0000 @@ -255,9 +255,11 @@ extern "C" void DMA1_Channel3_IRQHandler(void) { if(DMA1->ISR&(1u<<9)) { //Check whteher data transmit transfer is complete //Read data from the array that stores received data + /* for(int x = 0; x <= 11; x++) { data_to_transmit[x] = x+1; } + */ CLEAR_DMA1_CH3_IFCR_GFLAG(); //Clear global channel interrupt flag for channel 3 } //Clear Global Interrupt flag }