From 819f823ec215d5c9f4ae6c3d05cd9048e22703b7 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 26 Feb 2020 13:38:40 +0100 Subject: spidev set divider --- code/fe310/eos/eve/eve.h | 1 + code/fe310/eos/eve/eve_platform.c | 2 ++ 2 files changed, 3 insertions(+) (limited to 'code/fe310/eos/eve') 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 -- cgit v1.2.3