image/svg+xml
Brteve's API for EveApps
Version 0.0.1
The reference document for common folder of EveApps project.
 
Loading...
Searching...
No Matches
Gpu_Hal.h File Reference

This file defines the generic APIs of phost access layer for the FT800 or EVE compatible silicon. Application shall access FT800 or EVE resources over these APIs,regardless of I2C or SPI protocol. In addition, there are some helper functions defined for FT800 coprocessor engine as well as phost commands. More...

#include "FT_Gpu_Hal.h"
#include "EVE_Util.h"
#include "Gpu_CoCmd.h"
#include <stdlib.h>

Go to the source code of this file.

Data Structures

struct  Gpu_HalInit_t
 
struct  Fifo_t
 

Macros

#define PROGMEM   eve_progmem
 
#define PROGMEM_CONST   eve_progmem_const
 
#define FIFO_SIZE_MASK   EVE_FIFO_SIZE_MASK
 
#define FIFO_BYTE_ALIGNMENT_MASK   EVE_FIFO_BYTE_ALIGNMENT_MASK
 
#define CMD_SIZE   4
 
#define char8_t   int8_t
 
#define bool_t   bool
 
#define uchar8_t   uint8_t
 
#define FALSE   false
 
#define TRUE   true
 
#define FT800_PD_N   0
 
#define FT800_SEL_PIN   0
 
#define DispWidth   phost->Width
 
#define DispHeight   phost->Height
 
#define GPU_HAL_MODE_E   EVE_MODE_T
 
#define GPU_I2C_MODE   EVE_MODE_I2C
 
#define GPU_SPI_MODE   EVE_MODE_SPI
 
#define GPU_HAL_STATUS_E   EVE_STATUS_T
 
#define GPU_HAL_CLOSED   EVE_STATUS_CLOSED
 
#define GPU_HAL_OPENED   EVE_STATUS_OPENED
 
#define GPU_HAL_READING   EVE_STATUS_READING
 
#define GPU_HAL_WRITING   EVE_STATUS_WRITING
 
#define GPU_HAL_STATUS_ERROR   EVE_STATUS_ERROR
 
#define GPU_TRANSFERDIR_T   EVE_TRANSFER_T
 
#define GPU_READ   EVE_TRANSFER_READ
 
#define GPU_WRITE   EVE_TRANSFER_WRITE
 
#define Gpu_Hal_Callback_t   EVE_Callback
 
#define Gpu_Hal_Config_t   EVE_HalParameters
 
#define EVE_FIFO_SIZE_MASK   EVE_CMD_FIFO_MASK
 
#define EVE_FIFO_BYTE_ALIGNMENT_MASK   EVE_CMD_FIFO_ALIGNMENT_MASK
 
#define Gpu_Hal_Context_t   EVE_HalContext
 
#define hal_config   Parameters
 
#define spi_clockrate_khz   SpiClockrateKHz
 
#define pdn_pin_no   PowerDownPin
 
#define spi_cs_pin_no   SpiCsPin
 
#define cmd_fifo_wp   CmdWp
 
#define channel_no   SpiCsPin
 
#define MSVC_PLATFORM_SPI_LIBFT4222   1
 
#define MSVC_PLATFORM_SPI_LIBMPSSE   2
 
#define BootupConfig   EVE_Util_bootupConfig
 
#define Gpu_CoCmd_SendCmd   EVE_Cmd_wr32
 
#define Gpu_CoCmd_SendStr(phost, str)   EVE_Cmd_wrString(phost, str, EVE_CMD_STRING_MAX)
 
#define Gpu_CoCmd_SendStr_S   EVE_Cmd_wrString
 
#define Gpu_CoCmd_StartFrame(phost)   eve_noop()
 
#define Gpu_CoCmd_EndFrame(phost)   eve_noop()
 
#define Gpu_Copro_SendCmd   Gpu_CoCmd_SendCmd
 
#define Gpu_CoCmd_StartFunc(phost, size)   EVE_Cmd_startFunc(phost)
 
#define Gpu_CoCmd_EndFunc(phost, size)   EVE_Cmd_endFunc(phost)
 
#define Gpu_Fonts   EVE_Gpu_Fonts
 
#define Gpu_Fonts_t   EVE_Gpu_Fonts
 
#define Gpu_FontsExt   EVE_Gpu_FontsExt
 
#define Gpu_FontsExt_t   EVE_Gpu_FontsExt
 
#define GPU_NUMCHAR_PERFONT   EVE_GPU_NUMCHAR_PERFONT
 
#define GPU_FONT_TABLE_SIZE   EVE_GPU_FONT_TABLE_SIZE
 
#define Hal_LoadSDCard()   EVE_Util_loadSdCard(NULL)
 
#define Gpu_ClearScreen   EVE_Util_clearScreen
 
#define FLASH_WRITE_ALIGN_BYTE   (256)
 
#define FLASH_UPDATE_ALIGN_BYTE   (4096)
 
#define FLASH_READ_ALIGN_BYTE   (64)
 
#define POLAR_UTIL
 
#define RGB(r, g, b)   ((((vc_int32_t)(r)) << 16) | (((vc_int32_t)(g)) << 8) | (b))
 
#define SQ(v)   ((v) * (v))
 
#define MIN(x, y)   ((x) > (y) ? (y) : (x))
 
#define MAX(x, y)   ((x) > (y) ? (x) : (y))
 
#define PLAYCOLOR   0x00A0A080
 
#define NOTE(n, sharp)   (((n) - 'C') + ((sharp)*128))
 
#define F16(s)   ((int32_t)((s)*65536))
 
#define INVALID_TOUCH_XY   0x8000
 
#define ABS(x)   ((x) > (0) ? (x) : (-x))
 
#define ALIGN_TWO_POWER_N(Value, alignval)   (((Value) + (alignval - 1)) & (~(alignval - 1)))
 
#define pgm_read_byte_near(x)   (*(x))
 
#define pgm_read_byte(x)   (*(x))
 
#define pgm_read_word(addr)   (*((prog_uint16_t *)(addr)))
 
#define delay(x)   EVE_sleep(x)
 
#define random(x)   (rand() % (x))
 
#define DBGPRINT(x)   printf(x)
 
#define GET_CURR_MILLIS()   EVE_millis()
 
Type of file to load from SDCard or Windows file system
#define LOADIMAGE   1
 
#define INFLATE   2
 
#define LOAD   3
 
#define INFLATE2   4
 
The basic APIs Level 1
#define Gpu_Hal_Close   EVE_Hal_close
 
#define Gpu_Hal_DeInit   EVE_Hal_release
 
#define Gpu_Hal_ESD_Idle   EVE_Hal_idle
 
#define Gpu_Hal_StartTransfer   EVE_Hal_startTransfer
 
#define Gpu_Hal_Transfer8   EVE_Hal_transfer8
 
#define Gpu_Hal_Transfer16   EVE_Hal_transfer16
 
#define Gpu_Hal_Transfer32   EVE_Hal_transfer32
 
#define Gpu_Hal_EndTransfer   EVE_Hal_endTransfer
 
#define Gpu_Hal_Rd8   EVE_Hal_rd8
 
#define Gpu_Hal_Rd16   EVE_Hal_rd16
 
#define Gpu_Hal_Rd32   EVE_Hal_rd32
 
#define Gpu_Hal_Wr8   EVE_Hal_wr8
 
#define Gpu_Hal_Wr16   EVE_Hal_wr16
 
#define Gpu_Hal_Wr32   EVE_Hal_wr32
 
#define Gpu_Hal_WrMem   EVE_Hal_wrMem
 
#define Gpu_Hal_WrMem_ProgMem   EVE_Hal_wrProgMem
 
#define Gpu_Hal_WrMemFromFlash   EVE_Hal_wrProgMem
 
APIs for coprocessor Fifo read/write and space management
#define Gpu_Hal_WrCmd32   EVE_Cmd_wr32
 
Write a buffer to the command buffer. Waits if there is not enough space in the command buffer. Returns FALSE in case a coprocessor fault occurred
#define Gpu_Hal_WrCmdBuf   EVE_Cmd_wrMem
 
#define Gpu_Hal_WrCmdBuf_nowait   EVE_Cmd_wrMem
 
#define Gpu_Hal_WrCmdBuf_ProgMem   EVE_Cmd_wrProgMem
 
#define Gpu_Hal_WrCmdBufFromFlash   EVE_Cmd_wrProgMem
 
Wait for the command buffer to fully empty. Returns FALSE in case a coprocessor fault occurred
#define Gpu_Hal_WaitCmdFifoEmpty   EVE_Cmd_waitFlush
 
#define Gpu_Hal_WaitCmdfifo_empty   EVE_Cmd_waitFlush
 
Wait for the command buffer to have at least the requested amount of free space
#define Gpu_Hal_WaitCmdFreespace   EVE_Cmd_waitSpace
 
APIs for Host Commands
#define GPU_INTERNAL_OSC   EVE_INTERNAL_OSC
 
#define GPU_EXTERNAL_OSC   EVE_EXTERNAL_OSC
 
#define GPU_PLL_SOURCE_T   EVE_PLL_SOURCE_T
 
#define GPU_PLL_48M   EVE_PLL_48M
 
#define GPU_PLL_36M   EVE_PLL_36M
 
#define GPU_PLL_24M   EVE_PLL_24M
 
#define GPU_PLL_FREQ_T   EVE_PLL_FREQ_T
 
#define GPU_ACTIVE_M   EVE_ACTIVE_M
 
#define GPU_STANDBY_M   EVE_STANDBY_M
 
#define GPU_SLEEP_M   EVE_SLEEP_M
 
#define GPU_POWERDOWN_M   EVE_POWERDOWN_M
 
#define GPU_POWER_MODE_T   EVE_POWER_MODE_T
 
#define GPU_SYSCLK_DEFAULT   EVE_SYSCLK_DEFAULT
 
#define GPU_SYSCLK_72M   EVE_SYSCLK_72M
 
#define GPU_SYSCLK_60M   EVE_SYSCLK_60M
 
#define GPU_SYSCLK_48M   EVE_SYSCLK_48M
 
#define GPU_SYSCLK_36M   EVE_SYSCLK_36M
 
#define GPU_SYSCLK_24M   EVE_SYSCLK_24M
 
#define GPU_81X_PLL_FREQ_T   EVE_81X_PLL_FREQ_T
 
#define GPU_5MA   EVE_5MA
 
#define GPU_10MA   EVE_10MA
 
#define GPU_15MA   EVE_15MA
 
#define GPU_20MA   EVE_20MA
 
#define GPU_81X_GPIO_DRIVE_STRENGTH_T   EVE_81X_GPIO_DRIVE_STRENGTH_T
 
#define GPU_GPIO0   EVE_GPIO0
 
#define GPU_GPIO1   EVE_GPIO1
 
#define GPU_GPIO2   EVE_GPIO2
 
#define GPU_GPIO3   EVE_GPIO3
 
#define GPU_GPIO4   EVE_GPIO4
 
#define GPU_DISP   EVE_DISP
 
#define GPU_DE   EVE_DE
 
#define GPU_VSYNC_HSYNC   EVE_VSYNC_HSYNC
 
#define GPU_PCLK   EVE_PCLK
 
#define GPU_BACKLIGHT   EVE_BACKLIGHT
 
#define GPU_R_G_B   EVE_R_G_B
 
#define GPU_AUDIO_L   EVE_AUDIO_L
 
#define GPU_INT_N   EVE_INT_N
 
#define GPU_TOUCHWAKE   EVE_TOUCHWAKE
 
#define GPU_SCL   EVE_SCL
 
#define GPU_SDAEVE_SDA
 
#define GPU_SPI_MISO_MOSI_IO2_IO3   EVE_SPI_MISO_MOSI_IO2_IO3
 
#define GPU_81X_GPIO_GROUP_T   EVE_81X_GPIO_GROUP_T
 
#define GPU_81X_RESET_ACTIVE   EVE_81X_RESET_ACTIVE
 
#define GPU_81X_RESET_REMOVAL   EVE_81X_RESET_REMOVAL
 
#define GPU_CORE_RESET   EVE_CORE_RESET
 
#define COCMD_FAULT(rp)   EVE_CMD_FAULT(rp)
 
#define GPU_SPI_NUMCHANNELS_T   EVE_SPI_CHANNELS_T
 
#define GPU_SPI_SINGLE_CHANNEL   EVE_SPI_SINGLE_CHANNEL
 
#define GPU_SPI_DUAL_CHANNEL   EVE_SPI_DUAL_CHANNEL
 
#define GPU_SPI_QUAD_CHANNEL   EVE_SPI_QUAD_CHANNEL
 
#define GPU_SPI_NUMDUMMYBYTES   uint8_t
 
#define GPU_SPI_ONEDUMMY   1
 
#define GPU_SPI_TWODUMMY   2
 
#define SPI_SINGLE_CHANNEL   EVE_SPI_SINGLE_CHANNEL
 
#define SPI_DUAL_CHANNEL   EVE_SPI_DUAL_CHANNEL
 
#define SPI_QUAD_CHANNEL   EVE_SPI_QUAD_CHANNEL
 
#define SPI_ONE_DUMMY_BYTE   EVE_SPI_ONE_DUMMY_BYTE
 
#define SPI_TWO_DUMMY_BYTE   EVE_SPI_TWO_DUMMY_BYTES
 
#define ft_delay   EVE_sleep
 
#define Gpu_Hal_WaitLogo_Finish   EVE_Cmd_waitLogo
 
#define Gpu_Hal_Sleep   EVE_sleep
 
#define Gpu_HostCommand   EVE_Hal_hostCommand
 
#define Gpu_HostCommand_Ext3   EVE_Hal_hostCommandExt3
 
#define Gpu_Hal_Powercycle   EVE_Hal_powerCycle
 
#define Gpu_Hal_SetSPI   EVE_Hal_setSPI
 
#define Gpu_CurrentFrequency   EVE_Hal_currentFrequency
 
#define Gpu_ClockTrimming   EVE_Hal_clockTrimming
 
#define Gpu_ClockSelect   EVE_Host_clockSelect
 
#define Gpu_PLL_FreqSelect   EVE_Host_pllFreqSelect
 
#define Gpu_PowerModeSwitch   EVE_Host_powerModeSwitch
 
#define Gpu_CoreReset   EVE_Host_coreReset
 
#define Gpu_81X_SelectSysCLK   EVE_Host_selectSysClk
 
#define GPU_81X_PowerOffComponents   EVE_Host_powerOffComponents
 
#define GPU_81X_PadDriveStrength   EVE_Host_padDriveStrength
 
#define Gpu_81X_ResetActive   EVE_Host_resetActive
 
#define Gpu_81X_ResetRemoval   EVE_Host_resetRemoval
 
Definitions to ensure these don't get redefined
#define App_WrCoCmd_Buffer(phost, cmd)   EVE_Cmd_wr32((phost), (cmd))
 
#define App_WrCoStr_Buffer(phost, s)   EVE_Cmd_wrString((phost), (s), EVE_CMD_STRING_MAX)
 
#define App_Flush_Co_Buffer(phost)   EVE_Cmd_waitFlush((phost))
 
#define App_Flush_Co_Buffer_nowait(phost)   EVE_Cmd_waitFlush((phost))
 
#define App_Set_CmdBuffer_Index(idx)   eve_noop()
 

Typedefs

typedef float float_t
 
typedef double double_t
 
typedef eve_progmem uint16_t prog_uint16_t
 
typedef eve_progmem char prog_uchar8_t
 
typedef eve_progmem char prog_char8_t
 
typedef struct Fifo_t Fifo_t
 

Enumerations

enum  Flash_Cmd_Status_t { FLASH_CMD_SUCCESS = 0 , FLASH_CMD_ALIGNED_ERR }
 

Functions

static eve_deprecated ("Use `EVE_Hal_initialize`") bool Gpu_Hal_Init(Gpu_HalInit_t *halinit)
 
static eve_deprecated ("Use `EVE_Hal_open`") bool Gpu_Hal_Open(EVE_HalContext *phost)
 
static eve_deprecated ("Use `EVE_Hal_rdMem` (note: buffer and addr are swapped)") ft_void_t Gpu_Hal_RdMem(EVE_HalContext *phost
 
static eve_deprecated ("Use `EVE_Cmd_startFunc`, `EVE_Cmd_wr32`, and `EVE_Cmd_endFunc`") ft_void_t Gpu_CoCmd_SendCmdArr(EVE_HalContext *phost
 
static ft_int16_t Gpu_Hal_TransferString (EVE_HalContext *phost, const ft_char8_t *str)
 
static ft_int16_t Gpu_Hal_TransferString_S (EVE_HalContext *phost, const ft_char8_t *str, int length)
 
void GPU_DLSwap (Gpu_Hal_Context_t *phost, uint8_t DL_Swap_Type)
 API to check the status of previous DLSWAP and perform DLSWAP of new DL Check for the status of previous DLSWAP and if still not done wait for few ms and check again.
 
uint32_t GET_ASTC_FORMAT (uint16_t w, uint16_t h)
 
void astc_tile2 (uint8_t *iData, uint16_t bw, uint16_t bh, uint32_t size, const uint8_t *oData)
 
static int32_t Gpu_Hal_Dec2Ascii (char8_t *pSrc, int32_t value)
 
static void Gpu_Hal_LoadImageToMemory (Gpu_Hal_Context_t *phost, const char *fileName, int32_t destination, uint8_t type)
 
static void Gpu_Hal_ResetCmdFifo (Gpu_Hal_Context_t *phost)
 
Flash section
void Gpu_CoCmd_FlashHelper_Init (Gpu_Hal_Context_t *phost)
 
uint32_t Gpu_CoCmd_FlashHelper_SwitchState (Gpu_Hal_Context_t *phost, uint8_t nextState)
 
uint32_t Gpu_CoCmd_FlashHelper_SwitchFullMode (Gpu_Hal_Context_t *phost)
 
Flash_Cmd_Status_t Gpu_CoCmd_FlashHelper_Write (Gpu_Hal_Context_t *phost, uint32_t dest_flash, uint32_t num, const uint8_t *write_data)
 
Flash_Cmd_Status_t Gpu_CoCmd_FlashHelper_Update (Gpu_Hal_Context_t *phost, uint32_t dest_flash, uint32_t src_ram, uint32_t num)
 
Flash_Cmd_Status_t Gpu_CoCmd_FlashHelper_Read (Gpu_Hal_Context_t *phost, uint32_t dest_ram, uint32_t src_flash, uint32_t num, const uint8_t *read_data)
 
void Gpu_CoCmd_FlashHelper_Erase (Gpu_Hal_Context_t *phost)
 
void Gpu_CoCmd_FlashHelper_ClearCache (Gpu_Hal_Context_t *phost)
 
uint8_t Gpu_CoCmd_FlashHelper_GetState (Gpu_Hal_Context_t *phost)
 

Variables

static ft_uint32_t addr
 
static ft_uint32_t ft_uint8_tbuffer
 
static ft_uint32_t ft_uint8_t ft_uint32_t length
 
static ft_uint32_tcmd
 
static ft_uint32_t ft_size_t nb
 

Detailed Description

This file defines the generic APIs of phost access layer for the FT800 or EVE compatible silicon. Application shall access FT800 or EVE resources over these APIs,regardless of I2C or SPI protocol. In addition, there are some helper functions defined for FT800 coprocessor engine as well as phost commands.

Author
Bridgetek
Date
2018

MIT License

Copyright (c) [2019] [Bridgetek Pte Ltd (BRTChip)]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Definition in file Gpu_Hal.h.

Macro Definition Documentation

◆ ABS

#define ABS (   x)    ((x) > (0) ? (x) : (-x))

Definition at line 461 of file Gpu_Hal.h.

◆ ALIGN_TWO_POWER_N

#define ALIGN_TWO_POWER_N (   Value,
  alignval 
)    (((Value) + (alignval - 1)) & (~(alignval - 1)))

Definition at line 462 of file Gpu_Hal.h.

◆ App_Flush_Co_Buffer

#define App_Flush_Co_Buffer (   phost)    EVE_Cmd_waitFlush((phost))

Definition at line 439 of file Gpu_Hal.h.

◆ App_Flush_Co_Buffer_nowait

#define App_Flush_Co_Buffer_nowait (   phost)    EVE_Cmd_waitFlush((phost))

Definition at line 440 of file Gpu_Hal.h.

◆ App_Set_CmdBuffer_Index

#define App_Set_CmdBuffer_Index (   idx)    eve_noop()

Definition at line 441 of file Gpu_Hal.h.

◆ App_WrCoCmd_Buffer

#define App_WrCoCmd_Buffer (   phost,
  cmd 
)    EVE_Cmd_wr32((phost), (cmd))

Definition at line 437 of file Gpu_Hal.h.

◆ App_WrCoStr_Buffer

#define App_WrCoStr_Buffer (   phost,
 
)    EVE_Cmd_wrString((phost), (s), EVE_CMD_STRING_MAX)

Definition at line 438 of file Gpu_Hal.h.

◆ bool_t

#define bool_t   bool

Definition at line 80 of file Gpu_Hal.h.

◆ BootupConfig

#define BootupConfig   EVE_Util_bootupConfig

Definition at line 150 of file Gpu_Hal.h.

◆ channel_no

#define channel_no   SpiCsPin

Definition at line 144 of file Gpu_Hal.h.

◆ char8_t

#define char8_t   int8_t

Definition at line 79 of file Gpu_Hal.h.

◆ cmd_fifo_wp

#define cmd_fifo_wp   CmdWp

Definition at line 139 of file Gpu_Hal.h.

◆ CMD_SIZE

#define CMD_SIZE   4

Definition at line 77 of file Gpu_Hal.h.

◆ COCMD_FAULT

#define COCMD_FAULT (   rp)    EVE_CMD_FAULT(rp)

Definition at line 351 of file Gpu_Hal.h.

◆ DBGPRINT

#define DBGPRINT (   x)    printf(x)

Definition at line 470 of file Gpu_Hal.h.

◆ delay

#define delay (   x)    EVE_sleep(x)

Definition at line 468 of file Gpu_Hal.h.

◆ DispHeight

#define DispHeight   phost->Height

Definition at line 106 of file Gpu_Hal.h.

◆ DispWidth

#define DispWidth   phost->Width

Definition at line 105 of file Gpu_Hal.h.

◆ EVE_FIFO_BYTE_ALIGNMENT_MASK

#define EVE_FIFO_BYTE_ALIGNMENT_MASK   EVE_CMD_FIFO_ALIGNMENT_MASK

Definition at line 127 of file Gpu_Hal.h.

◆ EVE_FIFO_SIZE_MASK

#define EVE_FIFO_SIZE_MASK   EVE_CMD_FIFO_MASK

Definition at line 126 of file Gpu_Hal.h.

◆ F16

#define F16 (   s)    ((int32_t)((s)*65536))

Definition at line 459 of file Gpu_Hal.h.

◆ FALSE

#define FALSE   false

Definition at line 88 of file Gpu_Hal.h.

◆ FIFO_BYTE_ALIGNMENT_MASK

#define FIFO_BYTE_ALIGNMENT_MASK   EVE_FIFO_BYTE_ALIGNMENT_MASK

Definition at line 76 of file Gpu_Hal.h.

◆ FIFO_SIZE_MASK

#define FIFO_SIZE_MASK   EVE_FIFO_SIZE_MASK

Definition at line 75 of file Gpu_Hal.h.

◆ FLASH_READ_ALIGN_BYTE

#define FLASH_READ_ALIGN_BYTE   (64)

Definition at line 420 of file Gpu_Hal.h.

◆ FLASH_UPDATE_ALIGN_BYTE

#define FLASH_UPDATE_ALIGN_BYTE   (4096)

Definition at line 419 of file Gpu_Hal.h.

◆ FLASH_WRITE_ALIGN_BYTE

#define FLASH_WRITE_ALIGN_BYTE   (256)

Definition at line 418 of file Gpu_Hal.h.

◆ FT800_PD_N

#define FT800_PD_N   0

Definition at line 95 of file Gpu_Hal.h.

◆ FT800_SEL_PIN

#define FT800_SEL_PIN   0

Definition at line 98 of file Gpu_Hal.h.

◆ ft_delay

#define ft_delay   EVE_sleep

Definition at line 369 of file Gpu_Hal.h.

◆ GET_CURR_MILLIS

#define GET_CURR_MILLIS ( )    EVE_millis()

Definition at line 482 of file Gpu_Hal.h.

◆ GPU_10MA

#define GPU_10MA   EVE_10MA

Definition at line 321 of file Gpu_Hal.h.

◆ GPU_15MA

#define GPU_15MA   EVE_15MA

Definition at line 322 of file Gpu_Hal.h.

◆ GPU_20MA

#define GPU_20MA   EVE_20MA

Definition at line 323 of file Gpu_Hal.h.

◆ GPU_5MA

#define GPU_5MA   EVE_5MA

Definition at line 320 of file Gpu_Hal.h.

◆ GPU_81X_GPIO_DRIVE_STRENGTH_T

#define GPU_81X_GPIO_DRIVE_STRENGTH_T   EVE_81X_GPIO_DRIVE_STRENGTH_T

Definition at line 324 of file Gpu_Hal.h.

◆ GPU_81X_GPIO_GROUP_T

#define GPU_81X_GPIO_GROUP_T   EVE_81X_GPIO_GROUP_T

Definition at line 343 of file Gpu_Hal.h.

◆ GPU_81X_PadDriveStrength

#define GPU_81X_PadDriveStrength   EVE_Host_padDriveStrength

Definition at line 403 of file Gpu_Hal.h.

◆ GPU_81X_PLL_FREQ_T

#define GPU_81X_PLL_FREQ_T   EVE_81X_PLL_FREQ_T

Definition at line 318 of file Gpu_Hal.h.

◆ GPU_81X_PowerOffComponents

#define GPU_81X_PowerOffComponents   EVE_Host_powerOffComponents

Definition at line 402 of file Gpu_Hal.h.

◆ GPU_81X_RESET_ACTIVE

#define GPU_81X_RESET_ACTIVE   EVE_81X_RESET_ACTIVE

Definition at line 345 of file Gpu_Hal.h.

◆ GPU_81X_RESET_REMOVAL

#define GPU_81X_RESET_REMOVAL   EVE_81X_RESET_REMOVAL

Definition at line 346 of file Gpu_Hal.h.

◆ Gpu_81X_ResetActive

#define Gpu_81X_ResetActive   EVE_Host_resetActive

Definition at line 404 of file Gpu_Hal.h.

◆ Gpu_81X_ResetRemoval

#define Gpu_81X_ResetRemoval   EVE_Host_resetRemoval

Definition at line 405 of file Gpu_Hal.h.

◆ Gpu_81X_SelectSysCLK

#define Gpu_81X_SelectSysCLK   EVE_Host_selectSysClk

Definition at line 401 of file Gpu_Hal.h.

◆ GPU_ACTIVE_M

#define GPU_ACTIVE_M   EVE_ACTIVE_M

Definition at line 305 of file Gpu_Hal.h.

◆ GPU_AUDIO_L

#define GPU_AUDIO_L   EVE_AUDIO_L

Definition at line 337 of file Gpu_Hal.h.

◆ GPU_BACKLIGHT

#define GPU_BACKLIGHT   EVE_BACKLIGHT

Definition at line 335 of file Gpu_Hal.h.

◆ Gpu_ClearScreen

#define Gpu_ClearScreen   EVE_Util_clearScreen

Definition at line 410 of file Gpu_Hal.h.

◆ Gpu_ClockSelect

#define Gpu_ClockSelect   EVE_Host_clockSelect

Definition at line 395 of file Gpu_Hal.h.

◆ Gpu_ClockTrimming

#define Gpu_ClockTrimming   EVE_Hal_clockTrimming

Definition at line 393 of file Gpu_Hal.h.

◆ Gpu_CoCmd_EndFrame

#define Gpu_CoCmd_EndFrame (   phost)    eve_noop()

Definition at line 278 of file Gpu_Hal.h.

◆ Gpu_CoCmd_EndFunc

#define Gpu_CoCmd_EndFunc (   phost,
  size 
)    EVE_Cmd_endFunc(phost)

Definition at line 283 of file Gpu_Hal.h.

◆ Gpu_CoCmd_SendCmd

#define Gpu_CoCmd_SendCmd   EVE_Cmd_wr32

Definition at line 269 of file Gpu_Hal.h.

◆ Gpu_CoCmd_SendStr

#define Gpu_CoCmd_SendStr (   phost,
  str 
)    EVE_Cmd_wrString(phost, str, EVE_CMD_STRING_MAX)

Definition at line 275 of file Gpu_Hal.h.

◆ Gpu_CoCmd_SendStr_S

#define Gpu_CoCmd_SendStr_S   EVE_Cmd_wrString

Definition at line 276 of file Gpu_Hal.h.

◆ Gpu_CoCmd_StartFrame

#define Gpu_CoCmd_StartFrame (   phost)    eve_noop()

Definition at line 277 of file Gpu_Hal.h.

◆ Gpu_CoCmd_StartFunc

#define Gpu_CoCmd_StartFunc (   phost,
  size 
)    EVE_Cmd_startFunc(phost)

Definition at line 282 of file Gpu_Hal.h.

◆ Gpu_Copro_SendCmd

#define Gpu_Copro_SendCmd   Gpu_CoCmd_SendCmd

Definition at line 280 of file Gpu_Hal.h.

◆ GPU_CORE_RESET

#define GPU_CORE_RESET   EVE_CORE_RESET

Definition at line 349 of file Gpu_Hal.h.

◆ Gpu_CoreReset

#define Gpu_CoreReset   EVE_Host_coreReset

Definition at line 398 of file Gpu_Hal.h.

◆ Gpu_CurrentFrequency

#define Gpu_CurrentFrequency   EVE_Hal_currentFrequency

Definition at line 391 of file Gpu_Hal.h.

◆ GPU_DE

#define GPU_DE   EVE_DE

Definition at line 332 of file Gpu_Hal.h.

◆ GPU_DISP

#define GPU_DISP   EVE_DISP

Definition at line 331 of file Gpu_Hal.h.

◆ GPU_EXTERNAL_OSC

#define GPU_EXTERNAL_OSC   EVE_EXTERNAL_OSC

Definition at line 297 of file Gpu_Hal.h.

◆ GPU_FONT_TABLE_SIZE

#define GPU_FONT_TABLE_SIZE   EVE_GPU_FONT_TABLE_SIZE

Definition at line 290 of file Gpu_Hal.h.

◆ Gpu_Fonts

#define Gpu_Fonts   EVE_Gpu_Fonts

Definition at line 285 of file Gpu_Hal.h.

◆ Gpu_Fonts_t

#define Gpu_Fonts_t   EVE_Gpu_Fonts

Definition at line 286 of file Gpu_Hal.h.

◆ Gpu_FontsExt

#define Gpu_FontsExt   EVE_Gpu_FontsExt

Definition at line 287 of file Gpu_Hal.h.

◆ Gpu_FontsExt_t

#define Gpu_FontsExt_t   EVE_Gpu_FontsExt

Definition at line 288 of file Gpu_Hal.h.

◆ GPU_GPIO0

#define GPU_GPIO0   EVE_GPIO0

Definition at line 326 of file Gpu_Hal.h.

◆ GPU_GPIO1

#define GPU_GPIO1   EVE_GPIO1

Definition at line 327 of file Gpu_Hal.h.

◆ GPU_GPIO2

#define GPU_GPIO2   EVE_GPIO2

Definition at line 328 of file Gpu_Hal.h.

◆ GPU_GPIO3

#define GPU_GPIO3   EVE_GPIO3

Definition at line 329 of file Gpu_Hal.h.

◆ GPU_GPIO4

#define GPU_GPIO4   EVE_GPIO4

Definition at line 330 of file Gpu_Hal.h.

◆ Gpu_Hal_Callback_t

#define Gpu_Hal_Callback_t   EVE_Callback

Definition at line 123 of file Gpu_Hal.h.

◆ Gpu_Hal_Close

#define Gpu_Hal_Close   EVE_Hal_close

Definition at line 193 of file Gpu_Hal.h.

◆ GPU_HAL_CLOSED

#define GPU_HAL_CLOSED   EVE_STATUS_CLOSED

Definition at line 113 of file Gpu_Hal.h.

◆ Gpu_Hal_Config_t

#define Gpu_Hal_Config_t   EVE_HalParameters

Definition at line 124 of file Gpu_Hal.h.

◆ Gpu_Hal_Context_t

#define Gpu_Hal_Context_t   EVE_HalContext

Definition at line 134 of file Gpu_Hal.h.

◆ Gpu_Hal_DeInit

#define Gpu_Hal_DeInit   EVE_Hal_release

Definition at line 194 of file Gpu_Hal.h.

◆ Gpu_Hal_EndTransfer

#define Gpu_Hal_EndTransfer   EVE_Hal_endTransfer

Definition at line 202 of file Gpu_Hal.h.

◆ Gpu_Hal_ESD_Idle

#define Gpu_Hal_ESD_Idle   EVE_Hal_idle

Definition at line 196 of file Gpu_Hal.h.

◆ GPU_HAL_MODE_E

#define GPU_HAL_MODE_E   EVE_MODE_T

Definition at line 108 of file Gpu_Hal.h.

◆ GPU_HAL_OPENED

#define GPU_HAL_OPENED   EVE_STATUS_OPENED

Definition at line 114 of file Gpu_Hal.h.

◆ Gpu_Hal_Powercycle

#define Gpu_Hal_Powercycle   EVE_Hal_powerCycle

Definition at line 389 of file Gpu_Hal.h.

◆ Gpu_Hal_Rd16

#define Gpu_Hal_Rd16   EVE_Hal_rd16

Definition at line 205 of file Gpu_Hal.h.

◆ Gpu_Hal_Rd32

#define Gpu_Hal_Rd32   EVE_Hal_rd32

Definition at line 206 of file Gpu_Hal.h.

◆ Gpu_Hal_Rd8

#define Gpu_Hal_Rd8   EVE_Hal_rd8

Definition at line 204 of file Gpu_Hal.h.

◆ GPU_HAL_READING

#define GPU_HAL_READING   EVE_STATUS_READING

Definition at line 115 of file Gpu_Hal.h.

◆ Gpu_Hal_SetSPI

#define Gpu_Hal_SetSPI   EVE_Hal_setSPI

Definition at line 390 of file Gpu_Hal.h.

◆ Gpu_Hal_Sleep

#define Gpu_Hal_Sleep   EVE_sleep

Definition at line 385 of file Gpu_Hal.h.

◆ Gpu_Hal_StartTransfer

#define Gpu_Hal_StartTransfer   EVE_Hal_startTransfer

Definition at line 198 of file Gpu_Hal.h.

◆ GPU_HAL_STATUS_E

#define GPU_HAL_STATUS_E   EVE_STATUS_T

Definition at line 112 of file Gpu_Hal.h.

◆ GPU_HAL_STATUS_ERROR

#define GPU_HAL_STATUS_ERROR   EVE_STATUS_ERROR

Definition at line 117 of file Gpu_Hal.h.

◆ Gpu_Hal_Transfer16

#define Gpu_Hal_Transfer16   EVE_Hal_transfer16

Definition at line 200 of file Gpu_Hal.h.

◆ Gpu_Hal_Transfer32

#define Gpu_Hal_Transfer32   EVE_Hal_transfer32

Definition at line 201 of file Gpu_Hal.h.

◆ Gpu_Hal_Transfer8

#define Gpu_Hal_Transfer8   EVE_Hal_transfer8

Definition at line 199 of file Gpu_Hal.h.

◆ Gpu_Hal_WaitCmdfifo_empty

#define Gpu_Hal_WaitCmdfifo_empty   EVE_Cmd_waitFlush

Definition at line 240 of file Gpu_Hal.h.

◆ Gpu_Hal_WaitCmdFifoEmpty

#define Gpu_Hal_WaitCmdFifoEmpty   EVE_Cmd_waitFlush

Definition at line 239 of file Gpu_Hal.h.

◆ Gpu_Hal_WaitCmdFreespace

#define Gpu_Hal_WaitCmdFreespace   EVE_Cmd_waitSpace

Definition at line 245 of file Gpu_Hal.h.

◆ Gpu_Hal_WaitLogo_Finish

#define Gpu_Hal_WaitLogo_Finish   EVE_Cmd_waitLogo

Definition at line 371 of file Gpu_Hal.h.

◆ Gpu_Hal_Wr16

#define Gpu_Hal_Wr16   EVE_Hal_wr16

Definition at line 208 of file Gpu_Hal.h.

◆ Gpu_Hal_Wr32

#define Gpu_Hal_Wr32   EVE_Hal_wr32

Definition at line 209 of file Gpu_Hal.h.

◆ Gpu_Hal_Wr8

#define Gpu_Hal_Wr8   EVE_Hal_wr8

Definition at line 207 of file Gpu_Hal.h.

◆ Gpu_Hal_WrCmd32

#define Gpu_Hal_WrCmd32   EVE_Cmd_wr32

Definition at line 225 of file Gpu_Hal.h.

◆ Gpu_Hal_WrCmdBuf

#define Gpu_Hal_WrCmdBuf   EVE_Cmd_wrMem

Definition at line 230 of file Gpu_Hal.h.

◆ Gpu_Hal_WrCmdBuf_nowait

#define Gpu_Hal_WrCmdBuf_nowait   EVE_Cmd_wrMem

Definition at line 231 of file Gpu_Hal.h.

◆ Gpu_Hal_WrCmdBuf_ProgMem

#define Gpu_Hal_WrCmdBuf_ProgMem   EVE_Cmd_wrProgMem

Definition at line 233 of file Gpu_Hal.h.

◆ Gpu_Hal_WrCmdBufFromFlash

#define Gpu_Hal_WrCmdBufFromFlash   EVE_Cmd_wrProgMem

Definition at line 234 of file Gpu_Hal.h.

◆ GPU_HAL_WRITING

#define GPU_HAL_WRITING   EVE_STATUS_WRITING

Definition at line 116 of file Gpu_Hal.h.

◆ Gpu_Hal_WrMem

#define Gpu_Hal_WrMem   EVE_Hal_wrMem

Definition at line 211 of file Gpu_Hal.h.

◆ Gpu_Hal_WrMem_ProgMem

#define Gpu_Hal_WrMem_ProgMem   EVE_Hal_wrProgMem

Definition at line 212 of file Gpu_Hal.h.

◆ Gpu_Hal_WrMemFromFlash

#define Gpu_Hal_WrMemFromFlash   EVE_Hal_wrProgMem

Definition at line 213 of file Gpu_Hal.h.

◆ Gpu_HostCommand

#define Gpu_HostCommand   EVE_Hal_hostCommand

Definition at line 387 of file Gpu_Hal.h.

◆ Gpu_HostCommand_Ext3

#define Gpu_HostCommand_Ext3   EVE_Hal_hostCommandExt3

Definition at line 388 of file Gpu_Hal.h.

◆ GPU_I2C_MODE

#define GPU_I2C_MODE   EVE_MODE_I2C

Definition at line 109 of file Gpu_Hal.h.

◆ GPU_INT_N

#define GPU_INT_N   EVE_INT_N

Definition at line 338 of file Gpu_Hal.h.

◆ GPU_INTERNAL_OSC

#define GPU_INTERNAL_OSC   EVE_INTERNAL_OSC

Definition at line 296 of file Gpu_Hal.h.

◆ GPU_NUMCHAR_PERFONT

#define GPU_NUMCHAR_PERFONT   EVE_GPU_NUMCHAR_PERFONT

Definition at line 289 of file Gpu_Hal.h.

◆ GPU_PCLK

#define GPU_PCLK   EVE_PCLK

Definition at line 334 of file Gpu_Hal.h.

◆ GPU_PLL_24M

#define GPU_PLL_24M   EVE_PLL_24M

Definition at line 302 of file Gpu_Hal.h.

◆ GPU_PLL_36M

#define GPU_PLL_36M   EVE_PLL_36M

Definition at line 301 of file Gpu_Hal.h.

◆ GPU_PLL_48M

#define GPU_PLL_48M   EVE_PLL_48M

Definition at line 300 of file Gpu_Hal.h.

◆ GPU_PLL_FREQ_T

#define GPU_PLL_FREQ_T   EVE_PLL_FREQ_T

Definition at line 303 of file Gpu_Hal.h.

◆ Gpu_PLL_FreqSelect

#define Gpu_PLL_FreqSelect   EVE_Host_pllFreqSelect

Definition at line 396 of file Gpu_Hal.h.

◆ GPU_PLL_SOURCE_T

#define GPU_PLL_SOURCE_T   EVE_PLL_SOURCE_T

Definition at line 298 of file Gpu_Hal.h.

◆ GPU_POWER_MODE_T

#define GPU_POWER_MODE_T   EVE_POWER_MODE_T

Definition at line 309 of file Gpu_Hal.h.

◆ GPU_POWERDOWN_M

#define GPU_POWERDOWN_M   EVE_POWERDOWN_M

Definition at line 308 of file Gpu_Hal.h.

◆ Gpu_PowerModeSwitch

#define Gpu_PowerModeSwitch   EVE_Host_powerModeSwitch

Definition at line 397 of file Gpu_Hal.h.

◆ GPU_R_G_B

#define GPU_R_G_B   EVE_R_G_B

Definition at line 336 of file Gpu_Hal.h.

◆ GPU_READ

#define GPU_READ   EVE_TRANSFER_READ

Definition at line 120 of file Gpu_Hal.h.

◆ GPU_SCL

#define GPU_SCL   EVE_SCL

Definition at line 340 of file Gpu_Hal.h.

◆ GPU_SDAEVE_SDA

#define GPU_SDAEVE_SDA

Definition at line 341 of file Gpu_Hal.h.

◆ GPU_SLEEP_M

#define GPU_SLEEP_M   EVE_SLEEP_M

Definition at line 307 of file Gpu_Hal.h.

◆ GPU_SPI_DUAL_CHANNEL

#define GPU_SPI_DUAL_CHANNEL   EVE_SPI_DUAL_CHANNEL

Definition at line 355 of file Gpu_Hal.h.

◆ GPU_SPI_MISO_MOSI_IO2_IO3

#define GPU_SPI_MISO_MOSI_IO2_IO3   EVE_SPI_MISO_MOSI_IO2_IO3

Definition at line 342 of file Gpu_Hal.h.

◆ GPU_SPI_MODE

#define GPU_SPI_MODE   EVE_MODE_SPI

Definition at line 110 of file Gpu_Hal.h.

◆ GPU_SPI_NUMCHANNELS_T

#define GPU_SPI_NUMCHANNELS_T   EVE_SPI_CHANNELS_T

Definition at line 353 of file Gpu_Hal.h.

◆ GPU_SPI_NUMDUMMYBYTES

#define GPU_SPI_NUMDUMMYBYTES   uint8_t

Definition at line 358 of file Gpu_Hal.h.

◆ GPU_SPI_ONEDUMMY

#define GPU_SPI_ONEDUMMY   1

Definition at line 359 of file Gpu_Hal.h.

◆ GPU_SPI_QUAD_CHANNEL

#define GPU_SPI_QUAD_CHANNEL   EVE_SPI_QUAD_CHANNEL

Definition at line 356 of file Gpu_Hal.h.

◆ GPU_SPI_SINGLE_CHANNEL

#define GPU_SPI_SINGLE_CHANNEL   EVE_SPI_SINGLE_CHANNEL

Definition at line 354 of file Gpu_Hal.h.

◆ GPU_SPI_TWODUMMY

#define GPU_SPI_TWODUMMY   2

Definition at line 360 of file Gpu_Hal.h.

◆ GPU_STANDBY_M

#define GPU_STANDBY_M   EVE_STANDBY_M

Definition at line 306 of file Gpu_Hal.h.

◆ GPU_SYSCLK_24M

#define GPU_SYSCLK_24M   EVE_SYSCLK_24M

Definition at line 317 of file Gpu_Hal.h.

◆ GPU_SYSCLK_36M

#define GPU_SYSCLK_36M   EVE_SYSCLK_36M

Definition at line 316 of file Gpu_Hal.h.

◆ GPU_SYSCLK_48M

#define GPU_SYSCLK_48M   EVE_SYSCLK_48M

Definition at line 315 of file Gpu_Hal.h.

◆ GPU_SYSCLK_60M

#define GPU_SYSCLK_60M   EVE_SYSCLK_60M

Definition at line 314 of file Gpu_Hal.h.

◆ GPU_SYSCLK_72M

#define GPU_SYSCLK_72M   EVE_SYSCLK_72M

Definition at line 313 of file Gpu_Hal.h.

◆ GPU_SYSCLK_DEFAULT

#define GPU_SYSCLK_DEFAULT   EVE_SYSCLK_DEFAULT

Definition at line 312 of file Gpu_Hal.h.

◆ GPU_TOUCHWAKE

#define GPU_TOUCHWAKE   EVE_TOUCHWAKE

Definition at line 339 of file Gpu_Hal.h.

◆ GPU_TRANSFERDIR_T

#define GPU_TRANSFERDIR_T   EVE_TRANSFER_T

Definition at line 119 of file Gpu_Hal.h.

◆ GPU_VSYNC_HSYNC

#define GPU_VSYNC_HSYNC   EVE_VSYNC_HSYNC

Definition at line 333 of file Gpu_Hal.h.

◆ GPU_WRITE

#define GPU_WRITE   EVE_TRANSFER_WRITE

Definition at line 121 of file Gpu_Hal.h.

◆ hal_config

#define hal_config   Parameters

Definition at line 135 of file Gpu_Hal.h.

◆ Hal_LoadSDCard

#define Hal_LoadSDCard ( )    EVE_Util_loadSdCard(NULL)

Definition at line 408 of file Gpu_Hal.h.

◆ INFLATE

#define INFLATE   2

inflate command takes destination address before the actual bitmap

Definition at line 168 of file Gpu_Hal.h.

◆ INFLATE2

#define INFLATE2   4

Definition at line 170 of file Gpu_Hal.h.

◆ INVALID_TOUCH_XY

#define INVALID_TOUCH_XY   0x8000

Definition at line 460 of file Gpu_Hal.h.

◆ LOAD

#define LOAD   3

load bitmaps directly

Definition at line 169 of file Gpu_Hal.h.

◆ LOADIMAGE

#define LOADIMAGE   1

loadimage command takes destination address and options before the actual bitmap data

Definition at line 167 of file Gpu_Hal.h.

◆ MAX

#define MAX (   x,
 
)    ((x) > (y) ? (x) : (y))

Definition at line 455 of file Gpu_Hal.h.

◆ MIN

#define MIN (   x,
 
)    ((x) > (y) ? (y) : (x))

Definition at line 452 of file Gpu_Hal.h.

◆ MSVC_PLATFORM_SPI_LIBFT4222

#define MSVC_PLATFORM_SPI_LIBFT4222   1

Definition at line 147 of file Gpu_Hal.h.

◆ MSVC_PLATFORM_SPI_LIBMPSSE

#define MSVC_PLATFORM_SPI_LIBMPSSE   2

Definition at line 148 of file Gpu_Hal.h.

◆ NOTE

#define NOTE (   n,
  sharp 
)    (((n) - 'C') + ((sharp)*128))

Definition at line 458 of file Gpu_Hal.h.

◆ pdn_pin_no

#define pdn_pin_no   PowerDownPin

Definition at line 137 of file Gpu_Hal.h.

◆ pgm_read_byte

#define pgm_read_byte (   x)    (*(x))

Definition at line 466 of file Gpu_Hal.h.

◆ pgm_read_byte_near

#define pgm_read_byte_near (   x)    (*(x))

Definition at line 465 of file Gpu_Hal.h.

◆ pgm_read_word

#define pgm_read_word (   addr)    (*((prog_uint16_t *)(addr)))

Definition at line 467 of file Gpu_Hal.h.

◆ PLAYCOLOR

#define PLAYCOLOR   0x00A0A080

Definition at line 457 of file Gpu_Hal.h.

◆ POLAR_UTIL

#define POLAR_UTIL

Enable sin()/cos() calculator utilities

Definition at line 444 of file Gpu_Hal.h.

◆ PROGMEM

#define PROGMEM   eve_progmem

Definition at line 72 of file Gpu_Hal.h.

◆ PROGMEM_CONST

#define PROGMEM_CONST   eve_progmem_const

Definition at line 73 of file Gpu_Hal.h.

◆ random

#define random (   x)    (rand() % (x))

Definition at line 469 of file Gpu_Hal.h.

◆ RGB

#define RGB (   r,
  g,
  b 
)    ((((vc_int32_t)(r)) << 16) | (((vc_int32_t)(g)) << 8) | (b))

Definition at line 449 of file Gpu_Hal.h.

◆ spi_clockrate_khz

#define spi_clockrate_khz   SpiClockrateKHz

Definition at line 136 of file Gpu_Hal.h.

◆ spi_cs_pin_no

#define spi_cs_pin_no   SpiCsPin

Definition at line 138 of file Gpu_Hal.h.

◆ SPI_DUAL_CHANNEL

#define SPI_DUAL_CHANNEL   EVE_SPI_DUAL_CHANNEL

Definition at line 363 of file Gpu_Hal.h.

◆ SPI_ONE_DUMMY_BYTE

#define SPI_ONE_DUMMY_BYTE   EVE_SPI_ONE_DUMMY_BYTE

Definition at line 366 of file Gpu_Hal.h.

◆ SPI_QUAD_CHANNEL

#define SPI_QUAD_CHANNEL   EVE_SPI_QUAD_CHANNEL

Definition at line 364 of file Gpu_Hal.h.

◆ SPI_SINGLE_CHANNEL

#define SPI_SINGLE_CHANNEL   EVE_SPI_SINGLE_CHANNEL

Definition at line 362 of file Gpu_Hal.h.

◆ SPI_TWO_DUMMY_BYTE

#define SPI_TWO_DUMMY_BYTE   EVE_SPI_TWO_DUMMY_BYTES

Definition at line 367 of file Gpu_Hal.h.

◆ SQ

#define SQ (   v)    ((v) * (v))

Definition at line 450 of file Gpu_Hal.h.

◆ TRUE

#define TRUE   true

Definition at line 91 of file Gpu_Hal.h.

◆ uchar8_t

#define uchar8_t   uint8_t

Definition at line 81 of file Gpu_Hal.h.

Typedef Documentation

◆ double_t

typedef double double_t

Definition at line 83 of file Gpu_Hal.h.

◆ Fifo_t

typedef struct Fifo_t Fifo_t

◆ float_t

typedef float float_t

Definition at line 82 of file Gpu_Hal.h.

◆ prog_char8_t

typedef eve_progmem char prog_char8_t

Definition at line 103 of file Gpu_Hal.h.

◆ prog_uchar8_t

typedef eve_progmem char prog_uchar8_t

Definition at line 102 of file Gpu_Hal.h.

◆ prog_uint16_t

Definition at line 101 of file Gpu_Hal.h.

Enumeration Type Documentation

◆ Flash_Cmd_Status_t

Enumerator
FLASH_CMD_SUCCESS 

0

FLASH_CMD_ALIGNED_ERR 

1

Definition at line 412 of file Gpu_Hal.h.

413{
Flash_Cmd_Status_t
Definition Gpu_Hal.h:413
@ FLASH_CMD_SUCCESS
Definition Gpu_Hal.h:414
@ FLASH_CMD_ALIGNED_ERR
Definition Gpu_Hal.h:415

Function Documentation

◆ astc_tile2()

void astc_tile2 ( uint8_t iData,
uint16_t  bw,
uint16_t  bh,
uint32_t  size,
const uint8_t oData 
)

◆ eve_deprecated() [1/4]

static eve_deprecated ( "Use `EVE_Cmd_startFunc ,
`EVE_Cmd_wr32 ,
and `EVE_Cmd_endFunc`"   
)
inlinestatic

◆ eve_deprecated() [2/4]

static eve_deprecated ( "Use `EVE_Hal_initialize`"  )
inlinestatic

Definition at line 177 of file Gpu_Hal.h.

178{
180 halinit->TotalChannelNum = (uint32_t)EVE_Hal_list();
181 return !!platform;
182}
EVE_HAL_EXPORT EVE_HalPlatform * EVE_Hal_initialize()
Eve_Hal framework initialization.
Definition EVE_Hal.c:52
EVE_HAL_EXPORT size_t EVE_Hal_list()
List the available devices.
unsigned int uint32_t

◆ eve_deprecated() [3/4]

static eve_deprecated ( "Use `EVE_Hal_open`"  )
inlinestatic

Definition at line 184 of file Gpu_Hal.h.

185{
186 EVE_HalParameters parameters;
187 EVE_Hal_defaults(&parameters);
188 return EVE_Hal_open(phost, &parameters);
189}
EVE_HAL_EXPORT bool EVE_Hal_open(EVE_HalContext *phost, const EVE_HalParameters *parameters)
Open the Eve_Hal framework.
Definition EVE_Hal.c:103
EVE_HAL_EXPORT void EVE_Hal_defaults(EVE_HalParameters *parameters)
Setup default parameters for Eve_Hal framework.
Definition EVE_Hal.c:78

◆ eve_deprecated() [4/4]

static eve_deprecated ( "Use `EVE_Hal_rdMem` (note: buffer and addr are swapped)"  )
inlinestatic

◆ GET_ASTC_FORMAT()

uint32_t GET_ASTC_FORMAT ( uint16_t  w,
uint16_t  h 
)

◆ Gpu_CoCmd_FlashHelper_ClearCache()

void Gpu_CoCmd_FlashHelper_ClearCache ( Gpu_Hal_Context_t phost)

◆ Gpu_CoCmd_FlashHelper_Erase()

void Gpu_CoCmd_FlashHelper_Erase ( Gpu_Hal_Context_t phost)

◆ Gpu_CoCmd_FlashHelper_GetState()

uint8_t Gpu_CoCmd_FlashHelper_GetState ( Gpu_Hal_Context_t phost)

◆ Gpu_CoCmd_FlashHelper_Init()

void Gpu_CoCmd_FlashHelper_Init ( Gpu_Hal_Context_t phost)

◆ Gpu_CoCmd_FlashHelper_Read()

Flash_Cmd_Status_t Gpu_CoCmd_FlashHelper_Read ( Gpu_Hal_Context_t phost,
uint32_t  dest_ram,
uint32_t  src_flash,
uint32_t  num,
const uint8_t read_data 
)

◆ Gpu_CoCmd_FlashHelper_SwitchFullMode()

uint32_t Gpu_CoCmd_FlashHelper_SwitchFullMode ( Gpu_Hal_Context_t phost)

◆ Gpu_CoCmd_FlashHelper_SwitchState()

uint32_t Gpu_CoCmd_FlashHelper_SwitchState ( Gpu_Hal_Context_t phost,
uint8_t  nextState 
)

◆ Gpu_CoCmd_FlashHelper_Update()

Flash_Cmd_Status_t Gpu_CoCmd_FlashHelper_Update ( Gpu_Hal_Context_t phost,
uint32_t  dest_flash,
uint32_t  src_ram,
uint32_t  num 
)

◆ Gpu_CoCmd_FlashHelper_Write()

Flash_Cmd_Status_t Gpu_CoCmd_FlashHelper_Write ( Gpu_Hal_Context_t phost,
uint32_t  dest_flash,
uint32_t  num,
const uint8_t write_data 
)

◆ GPU_DLSwap()

void GPU_DLSwap ( Gpu_Hal_Context_t phost,
uint8_t  DL_Swap_Type 
)

API to check the status of previous DLSWAP and perform DLSWAP of new DL Check for the status of previous DLSWAP and if still not done wait for few ms and check again.

Parameters
phostPointer to Hal context
DL_Swap_TypeDL list swap type

Definition at line 497 of file FlashHelper.c.

498{
499 uint8_t Swap_Type = DLSWAP_FRAME;
500 uint8_t Swap_Done = DLSWAP_FRAME;
501
502 if (DL_Swap_Type == DLSWAP_LINE)
503 {
504 Swap_Type = DLSWAP_LINE;
505 }
506
507 /* Perform a new DL swap */
508 EVE_Hal_wr8(phost, REG_DLSWAP, Swap_Type);
509
510 /* Wait till the swap is done */
511 while (Swap_Done)
512 {
513 Swap_Done = EVE_Hal_rd8(phost, REG_DLSWAP);
514
515 if (DLSWAP_DONE != Swap_Done)
516 {
517 EVE_sleep(10);//wait for 10ms
518 }
519 }
520}
#define DLSWAP_DONE
#define DLSWAP_LINE
#define REG_DLSWAP
#define DLSWAP_FRAME
EVE_HAL_EXPORT void EVE_Hal_wr8(EVE_HalContext *phost, uint32_t addr, uint8_t v)
Write 8 bits to Coprocessor's memory.
Definition EVE_Hal.c:220
EVE_HAL_EXPORT uint8_t EVE_Hal_rd8(EVE_HalContext *phost, uint32_t addr)
Read 8 bits from Coprocessor's memory.
Definition EVE_Hal.c:157
EVE_HAL_EXPORT void EVE_sleep(uint32_t ms)
Sleep in milisecond.
unsigned char uint8_t

◆ Gpu_Hal_Dec2Ascii()

static int32_t Gpu_Hal_Dec2Ascii ( char8_t pSrc,
int32_t  value 
)
static

Definition at line 498 of file Gpu_Hal.h.

499{
500 int16_t Length;
501 char8_t *pdst;
502 char8_t charval;
503 int32_t CurrVal = value;
504 int32_t tmpval;
505 int32_t i;
506 char8_t tmparray[16];
507 char8_t idx = 0;
508
509 Length = (int16_t)strlen((char *)pSrc);
510 pdst = pSrc + Length;
511
512 if (0 == value)
513 {
514 *pdst++ = '0';
515 *pdst++ = '\0';
516 return 0;
517 }
518
519 if (CurrVal < 0)
520 {
521 *pdst++ = '-';
522 CurrVal = -CurrVal;
523 }
524 /* insert the value */
525 while (CurrVal > 0)
526 {
527 tmpval = CurrVal;
528 CurrVal /= 10;
529 tmpval = tmpval - CurrVal * 10;
530 charval = '0' + tmpval;
531 tmparray[idx++] = charval;
532 }
533
534 for (i = 0; i < idx; i++)
535 {
536 *pdst++ = tmparray[idx - i - 1];
537 }
538 *pdst++ = '\0';
539
540 return 0;
541}
int int32_t
short int16_t

◆ Gpu_Hal_LoadImageToMemory()

static void Gpu_Hal_LoadImageToMemory ( Gpu_Hal_Context_t phost,
const char *  fileName,
int32_t  destination,
uint8_t  type 
)
static

Definition at line 543 of file Gpu_Hal.h.

544{
545 if (type == LOADIMAGE)
546 {
547 EVE_Util_loadImageFile(phost, destination, fileName, NULL);
548 }
549 else if (type == INFLATE)
550 {
551 EVE_Util_loadInflateFile(phost, destination, fileName);
552 }
553 else if (type == LOAD)
554 {
555 EVE_Util_loadRawFile(phost, destination, fileName);
556 }
557}
EVE_HAL_EXPORT bool EVE_Util_loadInflateFile(EVE_HalContext *phost, uint32_t address, const char *filename)
Load file into RAM_G by CMD_INFLATE.
EVE_HAL_EXPORT bool EVE_Util_loadRawFile(EVE_HalContext *phost, uint32_t address, const char *filename)
Load a raw file into RAM_G.
EVE_HAL_EXPORT bool EVE_Util_loadImageFile(EVE_HalContext *phost, uint32_t address, const char *filename, uint32_t *format)
Load image into RAM_G.
#define LOAD
Definition Gpu_Hal.h:169
#define LOADIMAGE
Definition Gpu_Hal.h:167
#define INFLATE
Definition Gpu_Hal.h:168

◆ Gpu_Hal_ResetCmdFifo()

static void Gpu_Hal_ResetCmdFifo ( Gpu_Hal_Context_t phost)
static

Definition at line 559 of file Gpu_Hal.h.

560{
561 EVE_Cmd_restore(phost);
562}
EVE_HAL_EXPORT void EVE_Cmd_restore(EVE_HalContext *phost)
Definition EVE_Cmd.c:682

◆ Gpu_Hal_TransferString()

static ft_int16_t Gpu_Hal_TransferString ( EVE_HalContext phost,
const ft_char8_t str 
)
inlinestatic

Definition at line 374 of file Gpu_Hal.h.

375{
376 return EVE_Hal_transferString(phost, str, 0, EVE_CMD_STRING_MAX, 0) - 1;
377}
#define EVE_CMD_STRING_MAX
Definition EVE_Cmd.h:44
EVE_HAL_EXPORT uint32_t EVE_Hal_transferString(EVE_HalContext *phost, const char *str, uint32_t index, uint32_t size, uint32_t padMask)
Transfer a string to EVE platform.

◆ Gpu_Hal_TransferString_S()

static ft_int16_t Gpu_Hal_TransferString_S ( EVE_HalContext phost,
const ft_char8_t str,
int  length 
)
inlinestatic

Definition at line 379 of file Gpu_Hal.h.

380{
381 return EVE_Hal_transferString(phost, str, 0, length, 0) - 1;
382}
static ft_uint32_t ft_uint8_t ft_uint32_t length
Definition Gpu_Hal.h:217

Variable Documentation

◆ addr

Definition at line 216 of file Gpu_Hal.h.

◆ buffer

Definition at line 216 of file Gpu_Hal.h.

◆ cmd

Definition at line 270 of file Gpu_Hal.h.

◆ length

Initial value:
{
EVE_HAL_EXPORT void EVE_Hal_rdMem(EVE_HalContext *phost, uint8_t *result, uint32_t addr, uint32_t size)
Read a block data from Coprocessor's memory.
Definition EVE_Hal.c:206
static ft_uint32_t ft_uint8_t * buffer
Definition Gpu_Hal.h:216
static ft_uint32_t addr
Definition Gpu_Hal.h:216

Definition at line 216 of file Gpu_Hal.h.

◆ nb

Initial value:
{
EVE_Cmd_wrMem(phost, (uint8_t *)cmd, (uint32_t)nb * 4)
EVE_HAL_EXPORT bool EVE_Cmd_wrMem(EVE_HalContext *phost, const uint8_t *buffer, uint32_t size)
Write buffer to Coprocessor's comand fifo.
Definition EVE_Cmd.c:291
static ft_uint32_t ft_size_t nb
Definition Gpu_Hal.h:271
static ft_uint32_t * cmd
Definition Gpu_Hal.h:270

Definition at line 270 of file Gpu_Hal.h.