SPI slave program to enable communication between the FPGA and the STM32L432 board.

Dependencies:   mbed

Revision:
15:791f35b0f220
Parent:
13:c7e8e277f884
--- a/DMA_SPI.h	Sun May 05 01:08:22 2019 +0000
+++ b/DMA_SPI.h	Wed May 15 22:56:20 2019 +0000
@@ -18,7 +18,7 @@
 #define CCR_MEM2MEM 14
 
 
-#define SPI1_DISABLE()      SPI1->CR1 &= ~SPI_CR1_SPE
+#define SPI1_DISABLE()      SPI1->CR1 &= ~SPI_CR1_SPE                           //Clear SPE bit in SPI1 CR1 register
 #define SPI1_ENABLE()       SPI1->CR1 |=  SPI_CR1_SPE
 
 #define CLEAR_SPI1_CR1_CRC_BIT()      SPI1->CR1 &= ~SPI_CR1_CRCEN