⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 guitouchconf.h

📁 学习UCGUI的代码。适合于初学者使用。
💻 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        : GUITouch.Conf.h
Purpose     : Configures emWin GSC touch screen module
----------------------------------------------------------------------
*/


#ifndef GUITOUCH_CONF_H
#define GUITOUCH_CONF_H

/*********************************************************************
*
*            Selection of hardware
*
**********************************************************************
*/

#ifdef __TID__ 
  #if (((__TID__ >>8) &0x7f) == 85)          /* IAR V850 */
    #if defined CPU_V850_SA2
      #define AXEL2_BOARD
    #else 
      #define AXEL_BOARD
    #endif
  #endif
#elif  defined (__ghs__) && defined (__V850)
  #define AXEL_BOARD
#elif defined __COMPILER_FCC911__
  #define JASMINE
#endif

/*********************************************************************
*
*            defaults for the Axel board (V850/SB1)
*/
#ifdef AXEL_BOARD
  #define GUI_TOUCH_AD_TOP     418
  #define GUI_TOUCH_AD_BOTTOM   91
  #define GUI_TOUCH_AD_LEFT     91
  #define GUI_TOUCH_AD_RIGHT   505
  #define GUI_TOUCH_SWAP_XY      0
  #define GUI_TOUCH_MIRROR_X     1
  #define GUI_TOUCH_MIRROR_Y     1

  #define GUI_TOUCH_YSIZE      240      /* Area covered by touch screen */
  #define GUI_TOUCH_XSIZE      320      /* Area covered by touch screen */

/*********************************************************************
*
*            defaults for the Axel2 board (V850/SA2)
*/
#elif defined(AXEL2_BOARD)
  #define GUI_TOUCH_AD_TOP     878
  #define GUI_TOUCH_AD_BOTTOM  258
  #define GUI_TOUCH_AD_LEFT    372
  #define GUI_TOUCH_AD_RIGHT   872

  #define GUI_TOUCH_YSIZE      240      /* Area covered by touch screen */
  #define GUI_TOUCH_XSIZE      320      /* Area covered by touch screen */

/*********************************************************************
*
*            default configuration
*/

#else 
  #define GUI_TOUCH_AD_LEFT    236
  #define GUI_TOUCH_AD_RIGHT    16
  #define GUI_TOUCH_AD_TOP      23
  #define GUI_TOUCH_AD_BOTTOM  233
  #define GUI_TOUCH_SWAP_XY      1
  #define GUI_TOUCH_MIRROR_X     0
  #define GUI_TOUCH_MIRROR_Y     0

  #define GUI_TOUCH_YSIZE      240      /* Area covered by touch screen */
  #define GUI_TOUCH_XSIZE      320      /* Area covered by touch screen */
#endif /* board selection */

#endif /* GUITOUCH_CONF_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -