summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/spi_cfg.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2021-11-25 01:59:07 +0100
committerUros Majstorovic <majstor@majstor.org>2021-11-25 01:59:07 +0100
commit6a31936e80ae2743376dcbf9d39cd92461c4deca (patch)
treef6dedd2cbf3aee9bb8135c7a4ff874c066a6d072 /fw/fe310/eos/spi_cfg.h
parentc44897fda572cf8837b4535a6d1aaad4605c14af (diff)
i2s init/start/running fixed; i2c start returns error if i2s is running
Diffstat (limited to 'fw/fe310/eos/spi_cfg.h')
-rw-r--r--fw/fe310/eos/spi_cfg.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fw/fe310/eos/spi_cfg.h b/fw/fe310/eos/spi_cfg.h
index 43b0763..84ab8bb 100644
--- a/fw/fe310/eos/spi_cfg.h
+++ b/fw/fe310/eos/spi_cfg.h
@@ -1,5 +1,7 @@
#include <stdint.h>
+#define EOS_SPI_MAX_DEV 4
+
typedef struct {
uint16_t div;
uint8_t csid;
@@ -7,7 +9,7 @@ typedef struct {
unsigned char evt;
} SPIConfig;
-static const SPIConfig spi_cfg[] = {
+static const SPIConfig spi_cfg[EOS_SPI_MAX_DEV] = {
{ // DEV_NET
.div = SPI_DIV_NET,
.csid = SPI_CSID_NET,