
SPI slave program to enable communication between the FPGA and the STM32L432 board.
Diff: DMA_SPI.h
- Revision:
- 15:791f35b0f220
- Parent:
- 13:c7e8e277f884
diff -r 7bbaafa22f8d -r 791f35b0f220 DMA_SPI.h --- 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