diff options
author | Uros Majstorovic <majstor@majstor.org> | 2021-12-07 20:14:23 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2021-12-07 20:14:23 +0100 |
commit | 9c8f5a5e8f11e4a5012d55b96afae290242b8fdd (patch) | |
tree | 785538c3539d0b3d710f983c55c089567f5a458a /fw/fe310/eos/eve/eve_platform.h | |
parent | 7ded8116d90081851e0ddb1b4bdd77b645f6535c (diff) |
fixed eve, spi start/stop interface
Diffstat (limited to 'fw/fe310/eos/eve/eve_platform.h')
-rw-r--r-- | fw/fe310/eos/eve/eve_platform.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/fw/fe310/eos/eve/eve_platform.h b/fw/fe310/eos/eve/eve_platform.h index b33bd48..77afffc 100644 --- a/fw/fe310/eos/eve/eve_platform.h +++ b/fw/fe310/eos/eve/eve_platform.h @@ -1,9 +1,9 @@ #include <stdint.h> +#include <stdlib.h> +#include "timer.h" #include "spi.h" #include "spi_dev.h" -#include "power.h" -#include "timer.h" #define EVE_ETYPE_INTR 1 @@ -12,10 +12,6 @@ #define EVE_SPI_FLAG_BSWAP EOS_SPI_FLAG_BSWAP #define EVE_SPI_FLAG_TX EOS_SPI_FLAG_TX -#define EVE_WAKE_RST EOS_PWR_WAKE_RST -#define EVE_WAKE_RTC EOS_PWR_WAKE_RTC -#define EVE_WAKE_BTN EOS_PWR_WAKE_BTN - void *eve_malloc(size_t); void eve_free(void *); @@ -36,8 +32,6 @@ void eve_spi_stop(void); #define eve_spi_unlock eos_spi_unlock void eve_time_sleep(uint32_t ms); +uint64_t eve_time_get_tick(void); void eve_timer_set(uint32_t ms); void eve_timer_clear(void); -uint64_t eve_time_get_tick(void); - -void eve_platform_init(void); |