55#if defined(FT900_PLATFORM) || defined(FT93X_PLATFORM) || defined(RP2040_PLATFORM)
60#define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask))
61#define ALIGN(x,a) __ALIGN_MASK(x, a - 1)
64#define FLASH_ADDRESS (0x800000)
65#define ATFLASH(x) (FLASH_ADDRESS | x / 32)
66#define VP(x) ((x) * VertextPrecision)
79#define APP_PRINTF_INFO(M, ...) printf("[INF] " M "\r\n", ##__VA_ARGS__)
80#define APP_PRINTF_ERROR(M, ...) printf("[ERROR] %s:%d: " M "\r\n", __func__, __LINE__, ##__VA_ARGS__)
81#define APP_PRINTF_DEBUG(M, ...) printf("[DBG] %s:%s:%d: " M "\r\n", __FILE__, __func__, __LINE__, ##__VA_ARGS__)
83#define APP_INF APP_PRINTF_INFO
86#elif PRINTF_LEVEL == 2
87#define APP_INF APP_PRINTF_INFO
88#define APP_ERR APP_PRINTF_ERROR
90#elif PRINTF_LEVEL == 3
91#define APP_INF APP_PRINTF_INFO
92#define APP_ERR APP_PRINTF_ERROR
93#define APP_DBG APP_PRINTF_DEBUG
100#define APP_DBG_H2(x) APP_DBG(#x ": 0x%02x", (x))
101#define APP_DBG_H8(x) APP_DBG(#x ": 0x%08x", (x))
102#define APP_DBG_D(x) APP_DBG(#x ": %d" , (x))
103#define APP_DBG_U(x) APP_DBG(#x ": %u" , (x))
104#define APP_DBG_F8(x) APP_DBG(#x ": 0x%08f", (x))
105#define APP_DBG_F2(x) APP_DBG(#x ": 0x%02f", (x))
106#define APP_DBG_S(x) APP_DBG(#x ": %s" , (x))
111#define Draw_Text_Format(phost, M, ...) \
113 sprintf(textbuffer, M, ##__VA_ARGS__); \
114 Draw_Text(phost, textbuffer); \
117#define Draw_Text_Format2(phost, ms, M, ...) \
119 sprintf(textbuffer, M, ##__VA_ARGS__); \
120 Draw_Text2(phost, textbuffer, ms);\
128#if defined(BT817_ENABLE) || defined(BT818_ENABLE)
uint32_t Draw_Image(EVE_HalContext *phost, const char *filePath, uint32_t format)
void Draw_TextColor(EVE_HalContext *phost, const char8_t *str, uint8_t *bgColor, uint8_t *textColor)
void Calibration_Save(EVE_HalContext *phost)
void Get_VC1Dump(EVE_HalContext *phost, const char *filename)
void hintScreen(EVE_HalContext *phost, const uint8_t *msg)
void Display_StartColor(EVE_HalContext *phost, uint8_t *bgColor, uint8_t *textColor)
void Display_Start(EVE_HalContext *phost)
void Calibration_Restore(EVE_HalContext *phost)
void Setup_Precision(uint32_t format)
Setup vertex format and precision.
void Show_Diaglog_Info(EVE_HalContext *phost, const uint8_t *msg)
void Play_Sound(EVE_HalContext *phost, uint8_t sound, uint8_t vol, uint8_t midi)
uint32_t VertextPrecision
void Gpu_Release(EVE_HalContext *phost)
void Gpu_Init(EVE_HalContext *phost)
EVE initialzation.
void Display_End(EVE_HalContext *phost)
uint8_t Show_Diaglog_YesNo(EVE_HalContext *phost, const uint8_t *title, const uint8_t *msg)
void Play_MuteSound(EVE_HalContext *phost)
uint32_t Draw_Point(EVE_HalContext *phost, uint32_t Rx, uint32_t Ry, uint32_t R)
Helper function to draw a point.
uint8_t isSDcardDetected()
void Draw_Text(EVE_HalContext *phost, const char8_t *str)
uint32_t Get_SystemClock(EVE_HalContext *phost)
Get system frequency in Hz.
void Draw_Text2(EVE_HalContext *phost, const char8_t *str, int ms)
void Flash_Init(EVE_HalContext *phost, const uint8_t *filePath, const uint8_t *fileName)
void WelcomeScreen(Gpu_Hal_Context_t *phost, char *info[])
Main file to include the EVE HAL in your applications.
File read-write library for Eve application, support a unique interface for every platform.
File transfer interface from host to flash.
Eve's connected flash helper functions.
Gesture for touch screen.
#define Gpu_Hal_Context_t