aboutsummaryrefslogtreecommitdiff
path: root/include/arch/stm32l4xxx/peripherals/spi.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/arch/stm32l4xxx/peripherals/spi.h')
-rw-r--r--include/arch/stm32l4xxx/peripherals/spi.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/arch/stm32l4xxx/peripherals/spi.h b/include/arch/stm32l4xxx/peripherals/spi.h
index a39a0bb..e5b44fe 100644
--- a/include/arch/stm32l4xxx/peripherals/spi.h
+++ b/include/arch/stm32l4xxx/peripherals/spi.h
@@ -37,6 +37,13 @@ typedef enum {
SPI_DATA_SIZE_16_BITS = 15,
} spi_data_size_t;
+typedef enum {
+ SPI_FIFO_STATUS_EMPTY = 0,
+ SPI_FIFO_STATUS_QUARTER = 1,
+ SPI_FIFO_STATUS_HALF = 2,
+ SPI_FIFO_STATUS_FULL = 3,
+} spi_fifo_status_t;
+
typedef __IO struct {
/* spi control register. */
#define spi_bidimode (1 << 15) /* Bidirectional data mode enable. */