diff options
author | Uros Majstorovic <majstor@majstor.org> | 2019-10-18 18:38:00 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2019-10-18 18:38:00 +0200 |
commit | 85500fe0d01b691a9bdd8c2330d26d66bc2bc177 (patch) | |
tree | c320c642ebb942d1b3692701d50c4a46e50e49f3 /code/fe310/eos/spi_def.h | |
parent | f74dcae328e3650acf6b12499a55548b46117877 (diff) |
added spi driver
Diffstat (limited to 'code/fe310/eos/spi_def.h')
-rw-r--r-- | code/fe310/eos/spi_def.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/code/fe310/eos/spi_def.h b/code/fe310/eos/spi_def.h index 0c90b6d..7c7f817 100644 --- a/code/fe310/eos/spi_def.h +++ b/code/fe310/eos/spi_def.h @@ -7,3 +7,18 @@ #define SPI_SIZE_CHUNK 4 #define SPI_SIZE_WM 2 +#define SPI_FLAG_XCHG 0x10 +#define SPI_FLAG_CS 0x20 + +#define SPI_DIV_NET 16 +#define SPI_DIV_DISP 16 +#define SPI_DIV_CARD 16 +#define SPI_DIV_CAM 16 + + +#define SPI_CS_IDX_NET 3 +#define SPI_CS_IDX_DISP 2 +#define SPI_CS_IDX_CARD 0 +#define SPI_CS_IDX_NONE 1 + +#define SPI_CS_PIN_CAM 23 |