summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-06-28 17:15:27 -0700
committerKeith Packard <keithp@keithp.com>2016-06-29 19:17:45 -0700
commit21a29c7452398e0cca0fb90f99fa42a2a0684668 (patch)
treed38f3a0ea0542d815759f62667531a10fa9c429a /src
parent785d2697376ebd20531d22441a60c41bd927b42a (diff)
altos/stm: Add more SPI status register bits
These weren't the original version of the docs that we had. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/stm/stm32l.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stm/stm32l.h b/src/stm/stm32l.h
index 0b6b2798..352214ff 100644
--- a/src/stm/stm32l.h
+++ b/src/stm/stm32l.h
@@ -1359,10 +1359,13 @@ extern struct stm_spi stm_spi1, stm_spi2, stm_spi3;
#define STM_SPI_CR2_TXDMAEN 1
#define STM_SPI_CR2_RXDMAEN 0
+#define STM_SPI_SR_FRE 8
#define STM_SPI_SR_BSY 7
#define STM_SPI_SR_OVR 6
#define STM_SPI_SR_MODF 5
#define STM_SPI_SR_CRCERR 4
+#define STM_SPI_SR_UDR 3
+#define STM_SPI_SR_CHSIDE 2
#define STM_SPI_SR_TXE 1
#define STM_SPI_SR_RXNE 0