LCD_0.h
上传用户:zbk8730
上传日期:2017-08-10
资源大小:12168k
文件大小:3k
源码类别:

uCOS

开发平台:

C/C++

  1. /*
  2. *********************************************************************************************************
  3. *                                                uC/GUI
  4. *                        Universal graphic software for embedded applications
  5. *
  6. *                       (c) Copyright 2002, Micrium Inc., Weston, FL
  7. *                       (c) Copyright 2002, SEGGER Microcontroller Systeme GmbH
  8. *
  9. *              礐/GUI is protected by international copyright laws. Knowledge of the
  10. *              source code may not be used to write a similar product. This file may
  11. *              only be used in accordance with a license and should not be redistributed
  12. *              in any way. We appreciate your understanding and fairness.
  13. *
  14. ----------------------------------------------------------------------
  15. File        : LCD_0.C
  16. Purpose     : Glue defines for first display in a multi-controller
  17.               environment
  18. ---------------------------END-OF-HEADER------------------------------
  19. */
  20. #if ( (LCD_NUM_DISPLAYS > 1) && !defined(LCD_1_C) && !defined(LCD_2_C) && !defined(LCD_3_C))
  21. /*********************************************************************
  22. *
  23. *      Map the defines for this controller
  24. *
  25. *      #define LCD_<xxx> LCD_<xxx>_0
  26. *
  27. **********************************************************************
  28. */
  29.   #ifdef  LCD_CONTROLLER_0
  30.     #define LCD_CONTROLLER     LCD_CONTROLLER_0
  31.   #endif
  32.   #ifdef LCD_XSIZE_0
  33.     #define LCD_XSIZE          LCD_XSIZE_0
  34.   #endif
  35.   #ifdef  LCD_YSIZE_0
  36.     #define LCD_YSIZE          LCD_YSIZE_0
  37.   #endif
  38.   #ifdef  LCD_BITSPERPIXEL_0
  39.     #define LCD_BITSPERPIXEL   LCD_BITSPERPIXEL_0
  40.   #endif
  41.   #ifdef  LCD_VYSIZE_0
  42.     #define LCD_VYSIZE          LCD_VYSIZE_0
  43.   #endif
  44.   #ifdef LCD_MIRROR_X_0
  45.     #undef  LCD_MIRROR_X
  46.     #define LCD_MIRROR_X  LCD_MIRROR_X_0
  47.   #endif
  48.   #ifdef LCD_MIRROR_Y_0
  49.     #undef  LCD_MIRROR_Y
  50.     #define LCD_MIRROR_Y  LCD_MIRROR_Y_0
  51.   #endif
  52.   #ifdef LCD_SWAP_XY_0
  53.     #undef  LCD_SWAP_XY
  54.     #define LCD_SWAP_XY   LCD_SWAP_XY_0
  55.   #endif
  56.   #ifdef LCD_BITSPERPIXEL_0
  57.     #define LCD_BITSPERPIXEL LCD_BITSPERPIXEL_0
  58.   #endif
  59.   #ifdef LCD_CACHE_CONTROL_0
  60.     #define LCD_CACHE_CONTROL LCD_CACHE_CONTROL_0
  61.   #endif
  62.   #ifdef LCD_FIRSTSEG0_0
  63.     #undef  LCD_FIRSTSEG0
  64.     #define LCD_FIRSTSEG0   LCD_FIRSTSEG0_0
  65.   #endif
  66.   #ifdef LCD_LASTSEG0_0
  67.     #undef  LCD_LASTSEG0
  68.     #define LCD_LASTSEG0    LCD_LASTSEG0_0
  69.   #endif
  70.   #ifdef LCD_FIRSTCOM0_0
  71.     #undef  LCD_FIRSTCOM0
  72.     #define LCD_FIRSTCOM0   LCD_FIRSTCOM0_0
  73.   #endif
  74.   #ifdef LCD_LASTCOM0_0
  75.     #undef  LCD_LASTCOM0
  76.     #define LCD_LASTCOM0    LCD_LASTCOM0_0
  77.   #endif
  78.   #ifdef LCD_XORG0_0
  79.     #undef  LCD_XORG0
  80.     #define LCD_XORG0       LCD_XORG0_0
  81.   #endif
  82.   #ifdef LCD_YORG0_0
  83.     #undef  LCD_YORG0
  84.     #define LCD_YORG0       LCD_YORG0_0
  85.   #endif
  86. #endif
  87. /*********************************************************************
  88. *
  89. *      Some error checking
  90. *
  91. **********************************************************************
  92. */
  93.   #ifndef LCD_CONTROLLER
  94.     #error LCD_CONTROLLER not defined !
  95.   #endif