diff options
Diffstat (limited to 'code/fe310/eos/spi.h')
-rw-r--r-- | code/fe310/eos/spi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/code/fe310/eos/spi.h b/code/fe310/eos/spi.h index 79da7ac..2327413 100644 --- a/code/fe310/eos/spi.h +++ b/code/fe310/eos/spi.h @@ -9,6 +9,7 @@ #define EOS_SPI_FLAG_TX 0x01 #define EOS_SPI_FLAG_MORE 0x02 +#define EOS_SPI_FLAG_AUTOCS 0x04 void eos_spi_init(void); void eos_spi_dev_acquire(unsigned char dev); @@ -17,6 +18,8 @@ void eos_spi_dev_release(void); void eos_spi_xchg(unsigned char *buffer, uint16_t len, uint8_t flags); void eos_spi_xchg_handler(void); +void eos_spi_cs_set(void); +void eos_spi_cs_clear(void); uint8_t eos_spi_xchg8(uint8_t data, uint8_t flags); uint16_t eos_spi_xchg16(uint16_t data, uint8_t flags); uint32_t eos_spi_xchg32(uint32_t data, uint8_t flags); |