?? gui_confdefaults.h
字號:
/*********************************************************************
* SEGGER MICROCONTROLLER SYSTEME GmbH *
* Solutions for real time microcontroller applications *
**********************************************************************
* *
* (c) 1996 - 2007 SEGGER Microcontroller Systeme GmbH *
* *
* Internet: www.segger.com Support: support@segger.com *
* *
**********************************************************************
** emWin V4.10 - Graphical user interface for embedded applications **
emWin is protected by international copyright laws. Knowledge of the
source code may not be used to write a similar product. This file may
only be used in accordance with a license and should not be re-
distributed in any way. We appreciate your understanding and fairness.
----------------------------------------------------------------------
File : GUI_ConfDefaults.h
Purpose : Defaults for GUI config switches.
---------------------------END-OF-HEADER------------------------------
Attention : Do not modify this file ! If you do, you will not
be able do update to a later GUI version !
*/
#ifndef GUI_CONFDEFAULTS_H
#define GUI_CONFDEFAULTS_H
#include "GUIConf.h"
/**********************************************************************
*
* Defaults for config switches
*
***********************************************************************
*/
/* Define "universal pointer". Normally, this is not needed (define will expand to nothing)
However, on some systems (AVR - IAR compiler) it can be necessary ( -> __generic),
since a default pointer can access RAM only, not the built-in Flash
*/
#ifndef GUI_UNI_PTR
#define GUI_UNI_PTR
#define GUI_UNI_PTR_USED 0
#else
#define GUI_UNI_PTR_USED 1
#endif
/* Define const storage. Normally, this is not needed (define will expand to const)
However, on some systems (AVR - IAR compiler) it can be necessary ( -> __flash const),
since otherwise constants are copied into RAM
*/
#ifndef GUI_CONST_STORAGE
#define GUI_CONST_STORAGE const
#endif
#ifndef GUI_USE_MEMDEV_1BPP_FOR_SCREEN
#define GUI_USE_MEMDEV_1BPP_FOR_SCREEN 0
#endif
#ifndef GUI_SUPPORT_UNICODE
#define GUI_SUPPORT_UNICODE 1
#endif
#ifndef GUI_BIDI_MAX_CHARS_PER_LINE
#define GUI_BIDI_MAX_CHARS_PER_LINE 80
#endif
#ifndef GUI_SUPPORT_BIDI
#define GUI_SUPPORT_BIDI 0
#endif
#ifndef GUI_ALLOC_SIZE
#define GUI_ALLOC_SIZE 1000
#endif
#ifndef GUI_MAXBLOCKS
#define GUI_MAXBLOCKS (2 + GUI_ALLOC_SIZE / 32)
#endif
#ifndef GUI_SUPPORT_TOUCH
#define GUI_SUPPORT_TOUCH 0
#endif
#ifndef GUI_SUPPORT_MOUSE
#define GUI_SUPPORT_MOUSE 0
#endif
#ifndef GUI_SUPPORT_MEMDEV
#define GUI_SUPPORT_MEMDEV 0
#endif
#ifndef GUI_SUPPORT_AA
#define GUI_SUPPORT_AA 0
#endif
#ifndef GUI_OS
#define GUI_OS 0
#endif
#ifndef GUI_SUPPORT_LARGE_BITMAPS
#if GUI_ALLOC_SIZE > 65535
#define GUI_SUPPORT_LARGE_BITMAPS 1
#else
#define GUI_SUPPORT_LARGE_BITMAPS 0
#endif
#endif
#ifndef GUI_COMPATIBLE_MODE
#define GUI_COMPATIBLE_MODE 1
#endif
#ifndef GUI_NUM_LAYERS
#define GUI_NUM_LAYERS 1
#endif
#ifndef GUI_SUPPORT_CURSOR
#define GUI_SUPPORT_CURSOR (GUI_SUPPORT_MOUSE | GUI_SUPPORT_TOUCH)
#endif
#ifndef GUI_SUPPORT_MULTIUSER
#define GUI_SUPPORT_MULTIUSER 0
#endif
#ifndef GUI_CURSOR_LAYER
#define GUI_CURSOR_LAYER 0
#endif
#if GUI_SUPPORT_MULTIUSER
#define GUI_NUM_USERS GUI_NUM_LAYERS
#define GUI_NUM_CURSORS GUI_NUM_LAYERS
#else
#define GUI_NUM_USERS (GUI_CURSOR_LAYER + 1)
#define GUI_NUM_CURSORS (GUI_CURSOR_LAYER + 1)
#endif
#ifndef GUI_SELECT_JPEG
#define GUI_SELECT_JPEG 0
#endif
#ifndef GUI_SELECT_ALLOC
#define GUI_SELECT_ALLOC 1
#endif
#ifndef GUI_SUPPORT_DEVICES
#ifdef __C51__ /* Keil C51 limitation ... Indirect function calls are limited */
#define GUI_SUPPORT_DEVICES 0
#else
#define GUI_SUPPORT_DEVICES 1
#endif
#endif
#ifndef GUI_MEMCPY
#define GUI_MEMCPY(pSrc, pDest, NumBytes) memcpy(pSrc, pDest, NumBytes)
#endif
/* Some compilers for very simple chips can not generate code for function pointers
with parameters. In this case, we do not use function pointers, but limit the functionality slightly */
#ifndef GUI_COMPILER_SUPPORTS_FP
#ifdef __C51__
#define GUI_COMPILER_SUPPORTS_FP 0
#else
#define GUI_COMPILER_SUPPORTS_FP 1
#endif
#endif
#ifndef GUI_SUPPORT_ROTATION
#if GUI_COMPILER_SUPPORTS_FP
#define GUI_SUPPORT_ROTATION 1
#else
#define GUI_SUPPORT_ROTATION 0
#endif
#endif
/* In order to avoid warnings for undefined parameters */
#ifndef GUI_USE_PARA
#if defined (__BORLANDC__) || defined(NC30) || defined(NC308)
#define GUI_USE_PARA(para)
#else
#define GUI_USE_PARA(para) para=para;
#endif
#endif
/* Default for types */
#ifndef GUI_TIMER_TIME
#define GUI_TIMER_TIME int /* default is to use 16 bits for 16 bit CPUs,
32 bits on 32 bit CPUs for timing */
#endif
/* Types used for memory allocation */
#if GUI_ALLOC_SIZE <32767
#define GUI_ALLOC_DATATYPE I16
#define GUI_ALLOC_DATATYPE_U U16
#else
#define GUI_ALLOC_DATATYPE I32
#define GUI_ALLOC_DATATYPE_U U32
#endif
#ifndef GUI_MAX_XBF_BYTES
#define GUI_MAX_XBF_BYTES 200
#endif
#ifndef GUI_MEMSET
#define GUI_MEMSET GUI__memset
#endif
#endif /* ifdef GUI_CONFDEFAULTS_H */
/*************************** End of file ****************************/
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -