📄 custom_config.c
字号:
* RETURNS
*
* GLOBALS AFFECTED
*
*************************************************************************/
kal_bool custom_tcpip_create(comptask_handler_struct **handle)
{
#ifdef TCPIP_NOT_PRESENT
return KAL_FALSE;
#else
return tcpip_create(handle);
#endif /* TCPIP_NOT_PRESENT */
}
/*************************************************************************
* FUNCTION
* custom_socket_create
*
* DESCRIPTION
* Customize SOCKET create function.
* Return KAL_FALSE directly if SOCKET should not be created.
*
* PARAMETERS
*
* RETURNS
*
* GLOBALS AFFECTED
*
*************************************************************************/
kal_bool custom_socket_create(comptask_handler_struct **handle)
{
#ifdef SOC_NOT_PRESENT
return KAL_FALSE;
#else
return socket_create(handle);
#endif /* SOC_NOT_PRESENT */
}
/*************************************************************************
* FUNCTION
* custom_wap_create
*
* DESCRIPTION
* Customize WAP create function.
* Return KAL_FALSE directly if WAP should not be created.
*
* PARAMETERS
*
* RETURNS
*
* GLOBALS AFFECTED
*
*************************************************************************/
kal_bool custom_wap_create(comptask_handler_struct **handle)
{
#ifdef WAP_NOT_PRESENT
return KAL_FALSE;
#else
return wap_create(handle);
#endif /* WAP_NOT_PRESENT */
}
/*************************************************************************
* FUNCTION
* custom_wps_create
*
* DESCRIPTION
* Customize WPS create function.
* Return KAL_FALSE directly if WPS should not be created.
*
* PARAMETERS
*
* RETURNS
*
* GLOBALS AFFECTED
*
*************************************************************************/
kal_bool custom_wps_create(comptask_handler_struct **handle)
{
#ifdef WPS_NOT_PRESENT
return KAL_FALSE;
#else
return wps_create(handle);
#endif /* WAP_NOT_PRESENT */
}
/*************************************************************************
* FUNCTION
* custom_jam_create
*
* DESCRIPTION
* Customize JAM create function.
* Return KAL_FALSE directly if JAM should not be created.
*
* PARAMETERS
*
* RETURNS
*
* GLOBALS AFFECTED
*
*************************************************************************/
kal_bool custom_jvm_create(comptask_handler_struct **handle)
{
#ifdef __J2ME__
return jvm_create(handle);
#else
return KAL_FALSE;
#endif /* __J2ME__ */
}
/*************************************************************************
* FUNCTION
* custom_jdaemon_create
*
* DESCRIPTION
* Customize JASYN create function.
* Return KAL_FALSE directly if JASYN should not be created.
*
* PARAMETERS
*
* RETURNS
*
* GLOBALS AFFECTED
*
*************************************************************************/
kal_bool custom_jdaemon_create(comptask_handler_struct **handle)
{
#ifdef __J2ME__
return jdaemon_create(handle);
#else
return KAL_FALSE;
#endif /* __J2ME__ */
}
/*************************************************************************
* FUNCTION
* custom_email_create
*
* DESCRIPTION
* Customize email create function.
* Return KAL_FALSE directly if email should not be created.
*
* PARAMETERS
*
* RETURNS
*
* GLOBALS AFFECTED
*
*************************************************************************/
kal_bool custom_email_create(comptask_handler_struct **handle)
{
#ifdef __EMAIL__
return email_create(handle);
#else
return KAL_FALSE;
#endif /* __EMAIL__ */
}
/*************************************************************************
* FUNCTION
* custom_imps_create
*
* DESCRIPTION
* Customize IMPS create function.
* Return KAL_FALSE directly if IMPS should not be created.
*
* PARAMETERS
*
* RETURNS
*
* GLOBALS AFFECTED
*
*************************************************************************/
kal_bool custom_imps_create(comptask_handler_struct **handle)
{
#ifdef __IMPS__
return imps_create(handle);
#else
return KAL_FALSE;
#endif /* __IMPS__ */
}
/*************************************************************************
* FUNCTION
* custom_sip_create
*
* DESCRIPTION
* Customize SIP create function.
* Return KAL_FALSE directly if SIP should not be created.
*
* PARAMETERS
*
* RETURNS
*
* GLOBALS AFFECTED
*
*************************************************************************/
kal_bool custom_sip_create(comptask_handler_struct **handle)
{
#ifdef __SIP__
return sip_create(handle);
#else
return KAL_FALSE;
#endif /* __SIP__ */
}
/*************************************************************************
* FUNCTION
* custom_poc_create
*
* DESCRIPTION
* Customize POC create function.
* Return KAL_FALSE directly if POC should not be created.
*
* PARAMETERS
*
* RETURNS
*
* GLOBALS AFFECTED
*
*************************************************************************/
kal_bool custom_poc_create(comptask_handler_struct **handle)
{
#ifdef __POC__
return poc_create(handle);
#else
return KAL_FALSE;
#endif /* __POC__ */
}
/*************************************************************************
* FUNCTION
* custom_tp_task_create
*
* DESCRIPTION
* Customize touch-panel task create function.
* Return KAL_FALSE directly if touch-panel task should not be created.
*
* PARAMETERS
*
* RETURNS
*
* GLOBALS AFFECTED
*
*************************************************************************/
kal_bool custom_tp_task_create(comptask_handler_struct **handle)
{
#if defined(TOUCH_PANEL_SUPPORT) || defined(HAND_WRITING)
return tp_task_create(handle);
#else /* TOUCH_PANEL_SUPPORT || HAND_WRITING */
return KAL_FALSE;
#endif /* TOUCH_PANEL_SUPPORT || HAND_WRITING */
}
/*************************************************************************
* FUNCTION
* custom_bchs_create
*
* DESCRIPTION
* Customize BCHS task create function.
* Return KAL_FALSE directly if BCHS task should not be created.
*
* PARAMETERS
*
* RETURNS
*
* GLOBALS AFFECTED
*
*************************************************************************/
kal_bool custom_bchs_create(comptask_handler_struct **handle)
{
#if defined(__BTVCSR_HCI_BCHS__)
return bchs_create(handle);
#else /* __BTVCSR_HCI_BCHS__ */
return KAL_FALSE;
#endif /* __BTVCSR_HCI_BCHS__ */
}
/*************************************************************************
* FUNCTION
* custom_xdm_create
*
* DESCRIPTION
* Customize XDM task create function.
* Return KAL_FALSE directly if XDM task should not be created.
*
* PARAMETERS
*
* RETURNS
*
* GLOBALS AFFECTED
*
*************************************************************************/
kal_bool custom_xdm_create(comptask_handler_struct **handle)
{
#if defined(__XDM__)
return xdm_create(handle);
#else /* __XDM__ */
return KAL_FALSE;
#endif /* __XDM__ */
}
/*************************************************************************
* FUNCTION
* custom_bt_create
*
* DESCRIPTION
* Customize BT task create function.
* Return KAL_FALSE directly if BT task should not be created.
*
* PARAMETERS
*
* RETURNS
*
* GLOBALS AFFECTED
*
*************************************************************************/
kal_bool custom_bt_create(comptask_handler_struct **handle)
{
#if defined(__BTMTK__)
return bt_create(handle);
#else /* __BTMTK__ */
return KAL_FALSE;
#endif /* __BTMTK__ */
}
/*************************************************************************
* FUNCTION
* custom_wndrv_create
*
* DESCRIPTION
* Customize WNDRV task create function.
* Return KAL_FALSE directly if WNDRV task should not be created.
*
* PARAMETERS
*
* RETURNS
*
* GLOBALS AFFECTED
*
*************************************************************************/
kal_bool custom_wndrv_create(comptask_handler_struct **handle)
{
#if defined(__WIFI_SUPPORT__)
return wndrv_create(handle);
#else /* __WIFI_SUPPORT__ */
return KAL_FALSE;
#endif /* __WIFI_SUPPORT__ */
}
/*************************************************************************
* FUNCTION
* custom_dummy_supc_create
*
* DESCRIPTION
* Customize SUPC task create function.
* Return KAL_FALSE directly if SUPC task should not be created.
*
* PARAMETERS
*
* RETURNS
*
* GLOBALS AFFECTED
*
*************************************************************************/
kal_bool custom_dummy_supc_create(comptask_handler_struct **handle)
{
#if defined(__WIFI_SUPPORT__)
return dummy_supc_create(handle);
#else /* __WIFI_SUPPORT__ */
return KAL_FALSE;
#endif /* __WIFI_SUPPORT__ */
}
/*************************************************************************
* FUNCTION
* custom_idlerecl_create
*
* DESCRIPTION
* Customize idle reclaim task create function.
* Unlike others, the compile option is defined at custom_memorydevice.h
* Return KAL_FALSE directly if SUPC task should not be created.
*
* PARAMETERS
*
* RETURNS
*
* GLOBALS AFFECTED
*
*************************************************************************/
extern kal_bool idlerecl_create(comptask_handler_struct **handle);
kal_bool custom_idlerecl_create(comptask_handler_struct **handle)
{
#if defined(__NOR_FDM5__)
return idlerecl_create(handle);
#else /* __NOR_FDM5__ */
return KAL_FALSE;
#endif /* __NOR_FDM5__ */
}
/*************************************************************************
* FUNCTION
* remap_mod_task_g
*
* DESCRIPTION
* This function will remap module to new task at initialization stage.
* Original configuration in config.lib will be overwritten.
*
* PARAMETERS
* None
*
* RETURNS
* None
*
* GLOBALS AFFECTED
* mod_task_g
*
*************************************************************************/
void remap_mod_task_g(void)
{
#ifdef JATAAYU_SUPPORT
mod_task_g[MOD_WAP] = INDX_MMI;
#endif
return;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -