From 91ff7f239fc60052f141d8ca98751c610b6b18db Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Mon, 10 May 2021 16:45:27 +0200 Subject: added support for eve cmd loadimage and similar --- fw/fe310/eos/eve/eve.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'fw/fe310/eos/eve/eve.h') diff --git a/fw/fe310/eos/eve/eve.h b/fw/fe310/eos/eve/eve.h index b2c1141..39e96cb 100644 --- a/fw/fe310/eos/eve/eve.h +++ b/fw/fe310/eos/eve/eve.h @@ -37,8 +37,8 @@ void eve_write8(uint32_t addr, uint8_t data); void eve_write16(uint32_t addr, uint16_t data); void eve_write32(uint32_t addr, uint32_t data); -void eve_readb(uint32_t addr, uint8_t *b, size_t size); -void eve_writeb(uint32_t addr, uint8_t *b, size_t size); +void eve_readb(uint32_t addr, uint8_t *buf, size_t size); +void eve_writeb(uint32_t addr, uint8_t *buf, size_t size); void eve_dl_start(uint32_t addr, char burst); void eve_dl_write(uint32_t dl); @@ -47,6 +47,8 @@ void eve_dl_swap(void); uint32_t eve_dl_get_addr(void); void eve_cmd(uint32_t cmd, const char *fmt, ...); +void eve_cmd_write(uint8_t *buffer, size_t size); +void eve_cmd_end(void); uint32_t eve_cmd_result(uint16_t offset); void eve_cmd_dl(uint32_t dl); int eve_cmd_done(void); -- cgit v1.2.3