diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2020-11-28 23:21:22 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2020-11-28 23:21:22 -0700 |
commit | fd674424d19cf12c1186394606729cff236d5bdf (patch) | |
tree | 5ecd05faa96a32dbf86a94cec191954c14f1cb0f /include/arch/stm32l4xxx/peripherals/spi.h | |
parent | 654511788e24794c03ecb810a3b5907e95b8b55c (diff) | |
download | stm32l4-fd674424d19cf12c1186394606729cff236d5bdf.tar.gz stm32l4-fd674424d19cf12c1186394606729cff236d5bdf.tar.bz2 stm32l4-fd674424d19cf12c1186394606729cff236d5bdf.zip |
Some LED lights working. Not great. WIP
Diffstat (limited to 'include/arch/stm32l4xxx/peripherals/spi.h')
-rw-r--r-- | include/arch/stm32l4xxx/peripherals/spi.h | 7 |
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. */ |