summaryrefslogtreecommitdiff
path: root/code/fe310/eos/eve
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-02-26 13:38:40 +0100
committerUros Majstorovic <majstor@majstor.org>2020-02-26 13:38:40 +0100
commit819f823ec215d5c9f4ae6c3d05cd9048e22703b7 (patch)
tree5dba42761e0ab607ce6c00788ba002bcb562a2f2 /code/fe310/eos/eve
parent4d45c548bfaf27bd2135384b3ffd0c4bdb41521c (diff)
spidev set divider
Diffstat (limited to 'code/fe310/eos/eve')
-rw-r--r--code/fe310/eos/eve/eve.h1
-rw-r--r--code/fe310/eos/eve/eve_platform.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/code/fe310/eos/eve/eve.h b/code/fe310/eos/eve/eve.h
index f377567..b72fdf5 100644
--- a/code/fe310/eos/eve/eve.h
+++ b/code/fe310/eos/eve/eve.h
@@ -5,6 +5,7 @@
#define EVE_ETYPE_INTR 1
#define EVE_OK 0
#define EVE_ERR -1
+#define EVE_ERR_TEXT -100
/* events */
#define EVE_TOUCH_ETYPE_TRACK 0x0001
diff --git a/code/fe310/eos/eve/eve_platform.c b/code/fe310/eos/eve/eve_platform.c
index e15d414..bc0a7b9 100644
--- a/code/fe310/eos/eve/eve_platform.c
+++ b/code/fe310/eos/eve/eve_platform.c
@@ -66,4 +66,6 @@ void eve_init_platform(void) {
GPIO_REG(GPIO_LOW_IE) |= (1 << EVE_PIN_INTR);
eos_intr_set(INT_GPIO_BASE + EVE_PIN_INTR, IRQ_PRIORITY_UI, handle_intr);
+
+ eos_spi_dev_set_div(EOS_DEV_DISP, 4);
} \ No newline at end of file