diff options
author | Uros Majstorovic <majstor@majstor.org> | 2019-11-25 17:01:09 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2019-11-25 17:01:09 +0100 |
commit | 47fda276ca6f1e824646245a2c75ac6d60710fc9 (patch) | |
tree | f3c0f508aeddaafa6af58bc7540a01c270d83348 /code/fe310/eos/spi.h | |
parent | c5158873c583eb668f782d4fa7d5cbf86254c11a (diff) |
added auto/manual cs control for xchg8/16/32
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); |