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
EVE_Config.h File Reference

This file processes the input definitions. More...

#include "EVE_IntTypes.h"

Go to the source code of this file.

Macros

#define ESD_TARGET_GRAPHICS(name, ...)
 
#define ESD_TARGET_DISPLAY(name, ...)
 
#define ESD_TARGET_PLATFORM(name, ...)
 
#define ESD_TARGET_FLASH(name, ...)
 
#define ESD_TARGET_TOUCH(name, ...)
 
#define EVE_GRAPHICS_AVAILABLE
 
#define BT815_ENABLE
 
#define ENABLE_SPI_QUAD
 
#define EVE_DISPLAY_AVAILABLE
 
#define DISPLAY_RESOLUTION_WVGA
 
#define EVE_FLASH_AVAILABLE
 
#define EVE_FLASH_MX25L128
 
#define EVE_TOUCH_AVAILABLE
 
#define EVE_TOUCH_FOCAL
 
#define BT81X_ENABLE
 
#define EVE_SUPPORT_CHIPID   EVE_BT815
 
#define EVE_SUPPORT_GEN   EVE3
 
#define BT_815_ENABLE
 
#define BT_81X_ENABLE
 
#define EVE_DISPLAY_REFRESH   0
 
#define EVE_CONFIG__STR(x)   #x
 
#define EVE_CONFIG_STR(x)   EVE_CONFIG__STR(x)
 
#define EVE_PLATFORM_AVAILABLE
 
#define EVE_HAL_EXPORT
 
#define EVE_CHIPID   EVE_SUPPORT_CHIPID
 
#define EVE_GEN   EVE_SUPPORT_GEN
 
#define EVE_DL_OPTIMIZE   1
 
#define EVE_DL_CACHE_SCISSOR   1
 
#define EVE_DL_END_PRIMITIVE   0
 
#define EVE_DL_STATE_STACK_SIZE   4
 
#define EVE_DL_STATE_STACK_MASK   3
 
#define EVE_CMD_HOOKS   0
 
#define eve_progmem
 
#define eve_progmem_const   const
 
#define EVE_TCHAR_DEFINED
 
#define strcpy_s(dst, sz, src)   strcpy(dst, src)
 
#define _DEBUG   1
 
#define eve_pragma_warning(msg)
 
#define eve_pragma_error(msg)
 
#define EVE_ENABLE_FATFS   1
 
Chip IDs with EVE generation
#define EVE_FT800   0x10800
 
#define EVE_FT801   0x10801
 
#define EVE_FT810   0x20810
 
#define EVE_FT811   0x20811
 
#define EVE_FT812   0x20812
 
#define EVE_FT813   0x20813
 
#define EVE_BT880   0x20880
 
#define EVE_BT881   0x20881
 
#define EVE_BT882   0x20882
 
#define EVE_BT883   0x20883
 
#define EVE_BT815   0x30815
 
#define EVE_BT816   0x30816
 
#define EVE_BT817   0x40817
 
#define EVE_BT818   0x40818
 
EVE generations
#define EVE1   1
 
#define EVE2   2
 
#define EVE3   3
 
#define EVE4   4
 
Feature support.

Avoid hardcoding specific EVE models throughout the libraries.
Allows disabling specific features for debugging purposes.

#define EVE_SUPPORT_FLASH
 
#define EVE_SUPPORT_UNICODE
 
#define EVE_SUPPORT_ASTC
 
#define EVE_SUPPORT_PNG
 
#define EVE_SUPPORT_VIDEO
 
#define EVE_SUPPORT_CMDB
 
#define EVE_SUPPORT_MEDIAFIFO
 
#define EVE_SUPPORT_LARGEFONT
 
#define EVE_SUPPORT_CAPACITIVE
 

Typedefs

typedef eve_progmem int8_t eve_prog_int8_t
 
typedef eve_progmem uint8_t eve_prog_uint8_t
 
typedef eve_progmem uint16_t eve_prog_uint16_t
 
typedef char eve_tchar_t
 

Detailed Description

This file processes the input definitions.

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 EVE_Config.h.

Macro Definition Documentation

◆ _DEBUG

#define _DEBUG   1

Definition at line 1525 of file EVE_Config.h.

◆ BT815_ENABLE

#define BT815_ENABLE

The selected graphics module below must set one of the following options. (Users must select the graphics module definition, not one of these enable options.)

  • FT800_ENABLE
  • FT801_ENABLE
  • FT810_ENABLE
  • FT811_ENABLE
  • FT812_ENABLE
  • FT813_ENABLE
  • BT880_ENABLE
  • BT881_ENABLE
  • BT882_ENABLE
  • BT883_ENABLE
  • BT815_ENABLE
  • BT816_ENABLE
  • BT817_ENABLE
  • BT818_ENABLE

It may also set platform, display, and flash values if none are configured.

Definition at line 1040 of file EVE_Config.h.

◆ BT81X_ENABLE

#define BT81X_ENABLE

Definition at line 1138 of file EVE_Config.h.

◆ BT_815_ENABLE

#define BT_815_ENABLE

Definition at line 1190 of file EVE_Config.h.

◆ BT_81X_ENABLE

#define BT_81X_ENABLE

Definition at line 1212 of file EVE_Config.h.

◆ DISPLAY_RESOLUTION_WVGA

#define DISPLAY_RESOLUTION_WVGA

Definition at line 1045 of file EVE_Config.h.

◆ ENABLE_SPI_QUAD

#define ENABLE_SPI_QUAD

Definition at line 1041 of file EVE_Config.h.

◆ ESD_TARGET_DISPLAY

#define ESD_TARGET_DISPLAY (   name,
  ... 
)

Definition at line 49 of file EVE_Config.h.

◆ ESD_TARGET_FLASH

#define ESD_TARGET_FLASH (   name,
  ... 
)

Definition at line 51 of file EVE_Config.h.

◆ ESD_TARGET_GRAPHICS

#define ESD_TARGET_GRAPHICS (   name,
  ... 
)

Definition at line 48 of file EVE_Config.h.

◆ ESD_TARGET_PLATFORM

#define ESD_TARGET_PLATFORM (   name,
  ... 
)

Definition at line 50 of file EVE_Config.h.

◆ ESD_TARGET_TOUCH

#define ESD_TARGET_TOUCH (   name,
  ... 
)

Definition at line 52 of file EVE_Config.h.

◆ EVE1

#define EVE1   1

FT800 and FT801

Definition at line 74 of file EVE_Config.h.

◆ EVE2

#define EVE2   2

FT810 to FT813, and BT880 to BT883

Definition at line 75 of file EVE_Config.h.

◆ EVE3

#define EVE3   3

BT815 and BT816

Definition at line 76 of file EVE_Config.h.

◆ EVE4

#define EVE4   4

BT817 and BT818

Definition at line 77 of file EVE_Config.h.

◆ EVE_BT815

#define EVE_BT815   0x30815

Definition at line 66 of file EVE_Config.h.

◆ EVE_BT816

#define EVE_BT816   0x30816

Definition at line 67 of file EVE_Config.h.

◆ EVE_BT817

#define EVE_BT817   0x40817

Definition at line 68 of file EVE_Config.h.

◆ EVE_BT818

#define EVE_BT818   0x40818

Definition at line 69 of file EVE_Config.h.

◆ EVE_BT880

#define EVE_BT880   0x20880

Definition at line 62 of file EVE_Config.h.

◆ EVE_BT881

#define EVE_BT881   0x20881

Definition at line 63 of file EVE_Config.h.

◆ EVE_BT882

#define EVE_BT882   0x20882

Definition at line 64 of file EVE_Config.h.

◆ EVE_BT883

#define EVE_BT883   0x20883

Definition at line 65 of file EVE_Config.h.

◆ EVE_CHIPID

#define EVE_CHIPID   EVE_SUPPORT_CHIPID

Definition at line 1439 of file EVE_Config.h.

◆ EVE_CMD_HOOKS

#define EVE_CMD_HOOKS   0

Allow adding a callback hook into EVE_CoCmd calls using CoCmdHook in EVE_HalContext

Definition at line 1488 of file EVE_Config.h.

◆ EVE_CONFIG__STR

#define EVE_CONFIG__STR (   x)    #x

Definition at line 1367 of file EVE_Config.h.

◆ EVE_CONFIG_STR

#define EVE_CONFIG_STR (   x)    EVE_CONFIG__STR(x)

Definition at line 1368 of file EVE_Config.h.

◆ EVE_DISPLAY_AVAILABLE

#define EVE_DISPLAY_AVAILABLE

Definition at line 1044 of file EVE_Config.h.

◆ EVE_DISPLAY_REFRESH

#define EVE_DISPLAY_REFRESH   0

Definition at line 1240 of file EVE_Config.h.

◆ EVE_DL_CACHE_SCISSOR

#define EVE_DL_CACHE_SCISSOR   1

Keep cache of current scissor

Definition at line 1483 of file EVE_Config.h.

◆ EVE_DL_END_PRIMITIVE

#define EVE_DL_END_PRIMITIVE   0

Whether the END command is sent

Definition at line 1484 of file EVE_Config.h.

◆ EVE_DL_OPTIMIZE

#define EVE_DL_OPTIMIZE   1

Keep cache of displaylist values that don't often change but are generally set by every widget to reduce display list size

Definition at line 1482 of file EVE_Config.h.

◆ EVE_DL_STATE_STACK_MASK

#define EVE_DL_STATE_STACK_MASK   3

Definition at line 1486 of file EVE_Config.h.

◆ EVE_DL_STATE_STACK_SIZE

#define EVE_DL_STATE_STACK_SIZE   4

Definition at line 1485 of file EVE_Config.h.

◆ EVE_ENABLE_FATFS

#define EVE_ENABLE_FATFS   1

Definition at line 1565 of file EVE_Config.h.

◆ EVE_FLASH_AVAILABLE

#define EVE_FLASH_AVAILABLE

Definition at line 1049 of file EVE_Config.h.

◆ EVE_FLASH_MX25L128

#define EVE_FLASH_MX25L128

Definition at line 1050 of file EVE_Config.h.

◆ EVE_FT800

#define EVE_FT800   0x10800

Definition at line 56 of file EVE_Config.h.

◆ EVE_FT801

#define EVE_FT801   0x10801

Definition at line 57 of file EVE_Config.h.

◆ EVE_FT810

#define EVE_FT810   0x20810

Definition at line 58 of file EVE_Config.h.

◆ EVE_FT811

#define EVE_FT811   0x20811

Definition at line 59 of file EVE_Config.h.

◆ EVE_FT812

#define EVE_FT812   0x20812

Definition at line 60 of file EVE_Config.h.

◆ EVE_FT813

#define EVE_FT813   0x20813

Definition at line 61 of file EVE_Config.h.

◆ EVE_GEN

#define EVE_GEN   EVE_SUPPORT_GEN

Definition at line 1440 of file EVE_Config.h.

◆ EVE_GRAPHICS_AVAILABLE

#define EVE_GRAPHICS_AVAILABLE
Attention

The following values are set based on the input definitions. Do not set these values manually; instead, use the specific user definitions.

Graphics target:

  • EVE_SUPPORT_CHIPID=EVE_FT800
  • EVE_SUPPORT_CHIPID=EVE_FT801
  • EVE_SUPPORT_CHIPID=EVE_FT810
  • EVE_SUPPORT_CHIPID=EVE_FT811
  • EVE_SUPPORT_CHIPID=EVE_FT812
  • EVE_SUPPORT_CHIPID=EVE_FT813
  • EVE_SUPPORT_CHIPID=EVE_BT880
  • EVE_SUPPORT_CHIPID=EVE_BT881
  • EVE_SUPPORT_CHIPID=EVE_BT882
  • EVE_SUPPORT_CHIPID=EVE_BT883
  • EVE_SUPPORT_CHIPID=EVE_BT815
  • EVE_SUPPORT_CHIPID=EVE_BT816
  • EVE_SUPPORT_CHIPID=EVE_BT817
  • EVE_SUPPORT_CHIPID=EVE_BT818

Platform target:

  • BT8XXEMU_PLATFORM (set EVE_PLATFORM_BT8XXEMU)
  • FT9XX_PLATFORM (set MM900EV1A, etc.)
  • FT4222_PLATFORM (set EVE_PLATFORM_FT4222)
  • MPSSE_PLATFORM (set EVE_PLATFORM_MPSSE)
  • RP2040_PLATFORM (set EVE_PLATFORM_RP2040)

Display resolution:

  • DISPLAY_RESOLUTION_QVGA
  • DISPLAY_RESOLUTION_WQVGA
  • DISPLAY_RESOLUTION_WVGA
  • DISPLAY_RESOLUTION_WSVGA
  • DISPLAY_RESOLUTION_WXGA
  • DISPLAY_RESOLUTION_HVGA_PORTRAIT

Flash, with size in megabytes:

  • EVE_FLASH_AVAILABLE
  • EVE_FLASH_SIZE=16

Additionally, the following support flags are set:

  • EVE_SUPPORT_FLASH (Set even if EVE_FLASH_AVAILABLE is not set)
  • EVE_SUPPORT_UNICODE
  • EVE_SUPPORT_ASTC
  • EVE_SUPPORT_PNG
  • EVE_SUPPORT_VIDEO
  • EVE_SUPPORT_CMDB
  • EVE_SUPPORT_MEDIAFIFO
  • EVE_SUPPORT_CAPACITIVE
  • EVE_SUPPORT_RESISTIVE

Definition at line 320 of file EVE_Config.h.

◆ EVE_HAL_EXPORT

#define EVE_HAL_EXPORT

Definition at line 1410 of file EVE_Config.h.

◆ EVE_PLATFORM_AVAILABLE

#define EVE_PLATFORM_AVAILABLE

Definition at line 1379 of file EVE_Config.h.

◆ eve_pragma_error

#define eve_pragma_error (   msg)

Definition at line 1542 of file EVE_Config.h.

◆ eve_pragma_warning

#define eve_pragma_warning (   msg)

Definition at line 1534 of file EVE_Config.h.

◆ eve_progmem

#define eve_progmem

Definition at line 1498 of file EVE_Config.h.

◆ eve_progmem_const

#define eve_progmem_const   const

Definition at line 1499 of file EVE_Config.h.

◆ EVE_SUPPORT_ASTC

#define EVE_SUPPORT_ASTC

Definition at line 1458 of file EVE_Config.h.

◆ EVE_SUPPORT_CAPACITIVE

#define EVE_SUPPORT_CAPACITIVE

Definition at line 1471 of file EVE_Config.h.

◆ EVE_SUPPORT_CHIPID

#define EVE_SUPPORT_CHIPID   EVE_BT815

Definition at line 1188 of file EVE_Config.h.

◆ EVE_SUPPORT_CMDB

#define EVE_SUPPORT_CMDB

Definition at line 1463 of file EVE_Config.h.

◆ EVE_SUPPORT_FLASH

#define EVE_SUPPORT_FLASH

Definition at line 1456 of file EVE_Config.h.

◆ EVE_SUPPORT_GEN

#define EVE_SUPPORT_GEN   EVE3

Definition at line 1189 of file EVE_Config.h.

◆ EVE_SUPPORT_LARGEFONT

#define EVE_SUPPORT_LARGEFONT

Definition at line 1466 of file EVE_Config.h.

◆ EVE_SUPPORT_MEDIAFIFO

#define EVE_SUPPORT_MEDIAFIFO

Definition at line 1464 of file EVE_Config.h.

◆ EVE_SUPPORT_PNG

#define EVE_SUPPORT_PNG

Definition at line 1461 of file EVE_Config.h.

◆ EVE_SUPPORT_UNICODE

#define EVE_SUPPORT_UNICODE

Definition at line 1457 of file EVE_Config.h.

◆ EVE_SUPPORT_VIDEO

#define EVE_SUPPORT_VIDEO

Definition at line 1462 of file EVE_Config.h.

◆ EVE_TCHAR_DEFINED

#define EVE_TCHAR_DEFINED

Definition at line 1507 of file EVE_Config.h.

◆ EVE_TOUCH_AVAILABLE

#define EVE_TOUCH_AVAILABLE

Definition at line 1053 of file EVE_Config.h.

◆ EVE_TOUCH_FOCAL

#define EVE_TOUCH_FOCAL

Definition at line 1054 of file EVE_Config.h.

◆ strcpy_s

#define strcpy_s (   dst,
  sz,
  src 
)    strcpy(dst, src)

Definition at line 1517 of file EVE_Config.h.

Typedef Documentation

◆ eve_prog_int8_t

Definition at line 1502 of file EVE_Config.h.

◆ eve_prog_uint16_t

Definition at line 1504 of file EVE_Config.h.

◆ eve_prog_uint8_t

Definition at line 1503 of file EVE_Config.h.

◆ eve_tchar_t

typedef char eve_tchar_t

Definition at line 1511 of file EVE_Config.h.