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

📄 gui_pid.lst

📁 Keil C下通过的UCGUI,UCGUI的移植源代码
💻 LST
字号:
C51 COMPILER V8.05a   GUI_PID                                                              04/11/2008 14:18:46 PAGE 1   


C51 COMPILER V8.05a, COMPILATION OF MODULE GUI_PID
OBJECT MODULE PLACED IN GUI_PID.obj
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE gui\Core\GUI_PID.c LARGE BROWSE MDU_F120 DEBUG OBJECTEXTEND P
                    -RINT(.\GUI_PID.lst) OBJECT(GUI_PID.obj)

line level    source

   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        : GUI_PID.C
  16          Purpose     : PID (Pointer input device) management
  17          ----------------------------------------------------------------------
  18          */
  19          
  20          
  21          #include <stdio.h>
  22          #include <stdlib.h>
  23          #include <string.h>
  24          #include "gui\Core\LCD_Private.h"      /* private modul definitions & config */
  25          #include "gui\Core\GUI_Protected.h"
  26          
  27          /*********************************************************************
  28          *
  29          *       Static data
  30          *
  31          **********************************************************************
  32          */
  33          
  34          static GUI_PID_STATE _State;
  35          
  36          /*********************************************************************
  37          *
  38          *       GUI_PID_Load
  39          
  40            If the window manager is available, write the function pointer for
  41            the PID handler.
  42          */
  43          
  44          void GUI_PID_Load(void) {
  45   1        #if (GUI_WINSUPPORT)
                  WM_pfHandlePID = WM_HandlePID;
                #endif
  48   1      }
  49          
  50          
  51          /*********************************************************************
  52          *
  53          *       GUI_PID_GetState
  54          */
C51 COMPILER V8.05a   GUI_PID                                                              04/11/2008 14:18:46 PAGE 2   

  55          
  56          int GUI_PID_GetState(GUI_PID_STATE *pState) {
  57   1        *pState = _State;
  58   1        return (pState->Pressed != 0) ? 1 : 0;
  59   1      }
  60          
  61          /*********************************************************************
  62          *
  63          *       GUI_PID_StoreState
  64          */
  65          void GUI_PID_StoreState(const GUI_PID_STATE *pState) {
  66   1        GUI_PID_Load();
  67   1        _State = *pState;
  68   1      }
  69          
  70          
  71          /*********************************************************************
  72          *
  73          *          GUI_PID_Init
  74          */
  75          void GUI_PID_Init(void) {}
  76          
  77          /*************************** End of file ****************************/
  78          


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =     85    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =      5       3
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)

⌨️ 快捷键说明

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