diff options
author | Uros Majstorovic <majstor@majstor.org> | 2020-02-26 13:38:40 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2020-02-26 13:38:40 +0100 |
commit | 819f823ec215d5c9f4ae6c3d05cd9048e22703b7 (patch) | |
tree | 5dba42761e0ab607ce6c00788ba002bcb562a2f2 /code/fe310/eos/eve | |
parent | 4d45c548bfaf27bd2135384b3ffd0c4bdb41521c (diff) |
spidev set divider
Diffstat (limited to 'code/fe310/eos/eve')
-rw-r--r-- | code/fe310/eos/eve/eve.h | 1 | ||||
-rw-r--r-- | code/fe310/eos/eve/eve_platform.c | 2 |
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 |