diff options
author | Uros Majstorovic <majstor@majstor.org> | 2021-04-08 02:27:15 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2021-04-08 02:27:15 +0200 |
commit | 66e53b7e54878e2161f5c0dab6f90aebd9a1d97a (patch) | |
tree | 9ad45a813794be241123596531c993f471c01eb8 /fw/fe310/eos/eve/eve_platform.c | |
parent | 4566511371a8a80201c1adb0535cde722cbd9b48 (diff) |
added board.h
Diffstat (limited to 'fw/fe310/eos/eve/eve_platform.c')
-rw-r--r-- | fw/fe310/eos/eve/eve_platform.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fw/fe310/eos/eve/eve_platform.c b/fw/fe310/eos/eve/eve_platform.c index cfaf6d5..6bc87bb 100644 --- a/fw/fe310/eos/eve/eve_platform.c +++ b/fw/fe310/eos/eve/eve_platform.c @@ -5,10 +5,10 @@ #include "eos.h" #include "interrupt.h" #include "event.h" + #include "eve.h" #include "eve_platform.h" -#include "irq_def.h" static void handle_time(unsigned char type) { eve_handle_time(); @@ -55,15 +55,15 @@ void eve_platform_init(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); + eos_spi_set_div(EOS_SPI_DEV_EVE, 4); } void eve_spi_start(void) { - eos_spi_dev_select(EOS_DEV_DISP); + eos_spi_select(EOS_SPI_DEV_EVE); } void eve_spi_stop(void) { - eos_spi_dev_deselect(); + eos_spi_deselect(); } #include <stdio.h> |