📄 mmi_port.c
字号:
/****************************************************************************
** File Name: mmk_port.c *
** Author: Great.Tian *
** Date: 14/01/2004 *
** Copyright: 2004 Spreatrum, Incoporated. All Rights Reserved. *
** Description: This file is used to describe the port modual. *
/****************************************************************************
** Important Edit History *
** ------------------------------------------------------------------------*
** DATE NAME DESCRIPTION *
** 01/2004 Great.Tian Create
**
****************************************************************************/
#define MMI_PORT_C
/**---------------------------------------------------------------------------*
** Dependencies *
**---------------------------------------------------------------------------*/
#include "mmi_osbridge.h"
#include "mmi_port.h"
#include "mmk_type.h"
#include "mmk_ext_app.h"
#include "tb_dal.h"
#include "mmi_id.h"
#include "u_disk_api.h"
//#include "signals_header.h"
#include "mmiicp_ext.h" // add by luojunqing for ICP
/**---------------------------------------------------------------------------*
** Macro Declaration *
**---------------------------------------------------------------------------*/
#define REG_APP(_STARTMSG,_ENDMSG,_APP_PTR_) {_STARTMSG,_ENDMSG,_APP_PTR_},
/**---------------------------------------------------------------------------*
** Constant Variables *
**---------------------------------------------------------------------------*/
const REGISTER_APP_SIG_T g_reg_app[] =
{
#include "mmk_regapp.def"
};
/**---------------------------------------------------------------------------*
** Functions *
**---------------------------------------------------------------------------*/
/*****************************************************************************/
// Description : get the number of the reg application
// Global resource dependence :
// Author: Great.Tian
// Note:
/*****************************************************************************/
uint32 MMI_GetRegAppNum(
void
)
{
return ARR_SIZE( g_reg_app );
}
/*****************************************************************************/
// Description : get the total number of the window id
// Global resource dependence :
// Author: Great.Tian
// Note:
/*****************************************************************************/
uint32 MMI_GetWinIdNumber(
void
)
{
if(MMIICP_Ext_IsSupportICP())
return 0xFFFF; // add by luojunqing for ICP
else
return TOTAL_WINDOW_ID_NUMBER;
}
/*****************************************************************************/
// Description : get the total number of the control id
// Global resource dependence :
// Author: Great.Tian
// Note:
/*****************************************************************************/
uint32 MMI_GetCtrlIdNumber(
void
)
{
if(MMIICP_Ext_IsSupportICP())
return 0xFFFF; // add by luojunqing for ICP
else
return TOTAL_CONTROL_ID_NUMBER;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -