From cf7c06297d04bade9cd04c056f9ed510e64dd7bd Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 5 Aug 2020 03:39:22 +0200 Subject: code -> fw --- code/fe310/eos/eve/eve.h | 59 ------------------------------------------------ 1 file changed, 59 deletions(-) delete mode 100644 code/fe310/eos/eve/eve.h (limited to 'code/fe310/eos/eve/eve.h') diff --git a/code/fe310/eos/eve/eve.h b/code/fe310/eos/eve/eve.h deleted file mode 100644 index eb59959..0000000 --- a/code/fe310/eos/eve/eve.h +++ /dev/null @@ -1,59 +0,0 @@ -#include - -#include "eve_def.h" -#include "eve_touch.h" -#include "eve_track.h" -#include "eve_platform.h" - -#define EVE_OK 0 -#define EVE_ERR -1 - -#define EVE_PSTATE_ACTIVE 0 -#define EVE_PSTATE_STANDBY 1 -#define EVE_PSTATE_SLEEP 3 - -#define EVE_TAG_NOTAG 0 - -#define COLOR_RGBC(c) ((4UL<<24)|((c)&16777215UL)) -#define CLEAR_COLOR_RGBC(c) ((2UL<<24)|((c)&16777215UL)) - -typedef struct EVERect { - int16_t x; - int16_t y; - uint16_t w; - uint16_t h; -} EVERect; - -void eve_command(uint8_t command, uint8_t parameter); - -uint8_t eve_read8(uint32_t addr); -uint16_t eve_read16(uint32_t addr); -uint32_t eve_read32(uint32_t addr); -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_dl_start(uint32_t addr); -void eve_dl_write(uint32_t dl); -void eve_dl_swap(void); -uint32_t eve_dl_get_addr(void); - -void eve_cmd(uint32_t cmd, const char *fmt, ...); -uint32_t eve_cmd_result(uint16_t offset); -void eve_cmd_dl(uint32_t dl); -int eve_cmd_done(void); -int eve_cmd_exec(int w); -void eve_cmd_burst_start(void); -void eve_cmd_burst_end(void); - -void eve_active(void); -void eve_standby(void); -void eve_sleep(void); -void eve_wake(void); -void eve_brightness(uint8_t b); -void eve_set_touch_calibration(uint32_t *matrix); - -int eve_init(int pwr_on); -- cgit v1.2.3