summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/board.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2021-11-16 19:19:51 +0100
committerUros Majstorovic <majstor@majstor.org>2021-11-16 19:19:51 +0100
commit9d1721008fe1d35abdedbff063ef29d35996124c (patch)
tree10a38a337add60c6584abcf7745f3c9054444237 /fw/fe310/eos/board.h
parent554144b3caeb478881560fc0bff19ba95af87077 (diff)
board REV3 pins in board.h; eve BT817 support
Diffstat (limited to 'fw/fe310/eos/board.h')
-rw-r--r--fw/fe310/eos/board.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/fw/fe310/eos/board.h b/fw/fe310/eos/board.h
index 752808a..5509f78 100644
--- a/fw/fe310/eos/board.h
+++ b/fw/fe310/eos/board.h
@@ -1,23 +1,26 @@
#define SPI_DIV_NET 16
-#define SPI_DIV_EVE 16
+#define SPI_DIV_EVE 4
+#define SPI_DIV_EVE_SLOW 16
#define SPI_DIV_SDC 1024
#define SPI_DIV_CAM 24
-#define SPI_CSID_NET 3
-#define SPI_CSID_EVE 2
+#define SPI_CSID_NET 0
+#define SPI_CSID_EVE 3
#define SPI_CSID_SDC SPI_CSID_NONE
-#define SPI_CSID_CAM SPI_CSID_NONE
+#define SPI_CSID_CAM 2
#define SPI_CSPIN_NET SPI_CSPIN_NONE
#define SPI_CSPIN_EVE SPI_CSPIN_NONE
-#define SPI_CSPIN_SDC 2
-#define SPI_CSPIN_CAM 23
+#define SPI_CSPIN_SDC 0
+#define SPI_CSPIN_CAM SPI_CSPIN_NONE
-#define SPI_IOF_MASK_CS (((uint32_t)1 << IOF_SPI1_SS2) | ((uint32_t)1 << IOF_SPI1_SS3))
+#define SPI_IOF_MASK_CS (((uint32_t)1 << IOF_SPI1_SS0) | ((uint32_t)1 << IOF_SPI1_SS3))
#define NET_PIN_RTS 20
#define NET_PIN_CTS 22
+#define EVE_PIN_INTR 23
+
#define I2S_PIN_CK 1 /* PWM 0.1 */
#define I2S_PIN_CK_SW 21 /* PWM 1.2 */
#define I2S_PIN_CK_SR 18