summaryrefslogtreecommitdiff
path: root/chip/stm32
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32')
-rw-r--r--chip/stm32/registers.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chip/stm32/registers.h b/chip/stm32/registers.h
index dd4ceb13d6..0752416a2f 100644
--- a/chip/stm32/registers.h
+++ b/chip/stm32/registers.h
@@ -678,6 +678,7 @@ typedef volatile struct stm32_spi_regs stm32_spi_regs_t;
#define STM32_SPI_CR1_BIDIMODE (1 << 15)
#define STM32_SPI_CR1_BIDIOE (1 << 14)
+#define STM32_SPI_CR1_CRCEN (1 << 13)
#define STM32_SPI_CR1_SSM (1 << 9)
#define STM32_SPI_CR1_SSI (1 << 8)
#define STM32_SPI_CR1_LSBFIRST (1 << 7)
@@ -691,6 +692,11 @@ typedef volatile struct stm32_spi_regs stm32_spi_regs_t;
#define STM32_SPI_CR2_TXDMAEN (1 << 1)
#define STM32_SPI_CR2_DATASIZE(n) (((n) - 1) << 8)
+#define STM32_SPI_SR_RXNE (1 << 0)
+#define STM32_SPI_SR_TXE (1 << 1)
+#define STM32_SPI_SR_CRCERR (1 << 4)
+#define STM32_SPI_SR_BSY (1 << 7)
+
/* --- Debug --- */
#ifdef CHIP_FAMILY_STM32F0