summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/eve/eve_platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310/eos/eve/eve_platform.h')
-rw-r--r--fw/fe310/eos/eve/eve_platform.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/fw/fe310/eos/eve/eve_platform.h b/fw/fe310/eos/eve/eve_platform.h
index 7d085db..48ea00b 100644
--- a/fw/fe310/eos/eve/eve_platform.h
+++ b/fw/fe310/eos/eve/eve_platform.h
@@ -11,6 +11,15 @@
#define EVE_SPI_FLAG_BSWAP EOS_SPI_FLAG_BSWAP
#define EVE_SPI_FLAG_TX EOS_SPI_FLAG_TX
+void *eve_malloc(size_t);
+void eve_free(void *);
+
+//#define eve_malloc malloc
+//#define eve_free free
+
+void eve_spi_start(void);
+void eve_spi_stop(void);
+
#define eve_spi_cs_set eos_spi_cs_set
#define eve_spi_cs_clear eos_spi_cs_clear
#define eve_spi_flush eos_spi_flush
@@ -18,6 +27,8 @@
#define eve_spi_xchg16 eos_spi_xchg16
#define eve_spi_xchg24 eos_spi_xchg24
#define eve_spi_xchg32 eos_spi_xchg32
+#define eve_spi_lock eos_spi_lock
+#define eve_spi_unlock eos_spi_unlock
void eve_time_sleep(uint32_t ms);
void eve_timer_set(uint32_t ms);
@@ -25,9 +36,3 @@ void eve_timer_clear(void);
uint64_t eve_time_get_tick(void);
void eve_platform_init(void);
-
-//#define eve_malloc malloc
-//#define eve_free free
-
-void *eve_malloc(size_t);
-void eve_free(void *); \ No newline at end of file