📄 guidev_usage.lst
字号:
C51 COMPILER V8.05a GUIDEV_USAGE 04/11/2008 14:19:30 PAGE 1
C51 COMPILER V8.05a, COMPILATION OF MODULE GUIDEV_USAGE
OBJECT MODULE PLACED IN GUIDEV_Usage.obj
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE gui\MemDev\GUIDEV_Usage.c LARGE BROWSE MDU_F120 DEBUG OBJECTE
-XTEND PRINT(.\GUIDEV_Usage.lst) OBJECT(GUIDEV_Usage.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 : GUIDev.C
16 Purpose : Implementation of memory devices
17 ---------------------------END-OF-HEADER------------------------------
18 */
19
20
21 #include <string.h>
22 #include "gui\Core\GUI_Protected.h"
23 #include "gui\Core\GUIDebug.h"
24
25 /* Memory device capabilities are compiled only if support for them is enabled.*/
26 #if GUI_SUPPORT_MEMDEV
/*
*****************************************************************
*
* GUI_USAGE_Select
*
*****************************************************************
Purpose:
Selects a usage object into the active memory device.
*/
void GUI_USAGE_Select(GUI_USAGE_Handle hUsage) {
GUI_MEMDEV * pDev;
GUI_LOCK();
pDev = GUI_MEMDEV_h2p(GUI_Context.hDevData);
pDev->hUsage = hUsage;
GUI_UNLOCK();
}
/************************************************
*
* DecUseCnt
*
*************************************************
Purpose: Decrements the usage count and deletes the usage object if
the counter reaches 0.
C51 COMPILER V8.05a GUIDEV_USAGE 04/11/2008 14:19:30 PAGE 2
*/
void GUI_USAGE_DecUseCnt(GUI_USAGE_Handle hUsage) {
GUI_USAGE* pThis;
GUI_LOCK();
pThis = GUI_USAGE_h2p(hUsage);
if (--pThis->UseCnt == 0) {
GUI_ALLOC_FREE(hUsage);
}
GUI_UNLOCK();
}
#else
68
69 void GUIDEV_Usage(void) {} /* avoid empty object files */
70
71 #endif /* GUI_SUPPORT_MEMDEV */
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 1 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
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 + -