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

📄 cfg_conf.c

📁 abstract rtos
💻 C
📖 第 1 页 / 共 3 页
字号:
        return result;    }    result = aos_mpe_reg( "mpe_fib", MPE_FIB, MPS_FIB, fib_init , fib_msg_proc );#else    result = aos_mpe_reg( "mpe_fib", MPE_FIB, MPS_INET, fib_init , fib_msg_proc );#endif    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_inet", MPE_INET, MPS_INET, protocol_init , NULL );    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_ip", MPE_IP, MPS_INET, NULL , NULL );    if( AOS_SUCC != result )    {        return result;    }#endif#if    (AOS_INCLUDE_INET_ETHERNET == TRUE)    result = aos_mpe_reg( "mpe_eth", MPE_ETH, MPS_INET, ether_init_proc , ether_msg_proc );    if( AOS_SUCC != result )    {        return result;    }#endif#if( AOS_INCLUDE_INET_PPP == TRUE )    result = aos_mpe_reg( "mpe_ppp", MPE_PPP, MPS_INET,  ppp_init_proc, ppp_msg_proc );    if( AOS_SUCC != result )    {        return result;    }#endif#if( AOS_INCLUDE_INET_PPPOE == TRUE )    result = aos_mpe_reg( "mpe_pppoe", MPE_PPPOE, MPS_INET,  pppoe_init, pppoe_msg_proc );    if( AOS_SUCC != result )    {        return result;    }#endif#if( AOS_INCLUDE_INET_IFNET == TRUE )#if( CONFIG_BOARD_EIA == FALSE )    result = aos_mps_reg( "mps_ifnt", MPS_IFNET, TASK_PRIO_NORMAL);    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_ifnt", MPE_IFNET, MPS_IFNET, if_init , if_msg_proc );#else    result = aos_mpe_reg( "mpe_ifnt", MPE_IFNET, MPS_INET, if_init , if_msg_proc );#endif    if( AOS_SUCC != result )    {        return result;    }#endif#if (AOS_INCLUDE_SMP_CLI  ==   TRUE)    result = aos_mps_reg( "mps_cli", MPS_CLI, TASK_PRIO_NORMAL);    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_cli", MPE_CLI, MPS_CLI, cli_msg_init ,  NULL);    if( AOS_SUCC != result )    {        return result;    }    #if((AOS_INCLUDE_SMP_LOG == TRUE ) && ( CONFIG_BOARD_GMPU == TRUE ))    result = aos_mpe_reg( "mpe_log", MPE_LOG, MPS_CLI, log_msg_init, log_proc_msg );    if( AOS_SUCC != result )    {        return result;    }    #endif#if( AOS_INCLUDE_SMP_CLIPRXY == TRUE )    result = aos_mpe_reg( "mpe_cliprxy", MPE_CLIPRXY, MPS_CLI, (MPE_INIT_ROUTINE)cli_prxy_msg_init, cli_prxy_proc_msg );    if( AOS_SUCC != result )    {        return result;    }#endif#endif#if (AOS_INCLUDE_SSP_DB ==   TRUE)    result = aos_mps_reg( "mps_db", MPS_DB, TASK_PRIO_NORMAL );    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_db", MPE_DB, MPS_DB, mpe_db_init, db_msg_proc );    if( AOS_SUCC != result )    {        return result;    }#endif#if(AOS_INCLUDE_DRV_MODEM == TRUE)    result = aos_mps_reg( "mps_mdm", MPS_MODEM, TASK_PRIO_ABOVE_NORMAL);    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_mdm", MPE_MODEM, MPS_MODEM, mdm_msg_init , mdm_msg_proc );    if( AOS_SUCC != result )    {        return result;    }#endif#if( AOS_INCLUDE_SERVICE_V5 == TRUE )    result = aos_mps_reg( "mps_v5", MPS_V5, TASK_PRIO_NORMAL);    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_v5m", MPE_V5MNGT, MPS_V5, v5mngt_init_proc, (MPE_RUN_ROUTINE)v5mngt_msg_proc );    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_pstn", MPE_V5PSTN, MPS_V5, v5pstn_init_proc, (MPE_RUN_ROUTINE)v5pstn_msg_proc );    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_ctrl", MPE_V5CTRL, MPS_V5, v5ctrl_init_proc, (MPE_RUN_ROUTINE)v5ctrl_msg_proc );    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_bcc", MPE_V5BCC, MPS_V5, v5bcc_init_proc,     (MPE_RUN_ROUTINE)v5bcc_msg_proc );    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_linkc", MPE_V5LINKC, MPS_V5, v5linkc_init_proc, (MPE_RUN_ROUTINE)v5linkc_msg_proc );    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_prot", MPE_V5PROT, MPS_V5, v5prot_init_proc, (MPE_RUN_ROUTINE)v5prot_msg_proc );    if( AOS_SUCC != result )    {        return result;    }#endif#if (AOS_INCLUDE_SERVICE_RTPRTCP==   TRUE)#if (CONFIG_BOARD_EIA == TRUE)    result = aos_mpe_reg( "mpe_rtp", MPE_RTPEIA, MPS_INET, rtp_eia_init_proc, NULL);    if( AOS_SUCC != result )    {        return result;    }#endif#if (CONFIG_BOARD_GDSP == TRUE) || (CONFIG_BOARD_GMPU== TRUE && CONFIG_OS_WINDOWS == TRUE)    result = aos_mps_reg("rtpgdsp", MPS_RTPGDSP,  TASK_PRIO_NORMAL);    if (AOS_SUCC != result)    {        AOS_ASSERT(0);        return result;    }    result = aos_mpe_reg("rtpgdsp", MPE_RTPGDSP, MPS_RTPGDSP, rtp_gdsp_init_proc, rtp_gdsp_msg_proc);    if (AOS_SUCC != result)    {    AOS_ASSERT(0);        return result;    }#endif#endif    #if (AOS_INCLUDE_SERVICE_ST  ==   TRUE)    result = aos_mps_reg( "mps_st", MPS_ST, TASK_PRIO_ABOVE_NORMAL);    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_st", MPE_ST, MPS_ST, st_init , st_msg_proc );    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_mst", MPE_MST, MPS_ST, mst_init , mst_msg_proc );    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_sst", MPE_SST, MPS_ST, sst_init , sst_msg_proc );    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_hst", MPE_HST, MPS_ST, hst_init , hst_msg_proc );    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_qta", MPE_QTA, MPS_ST, qta_init , qta_msg_proc );    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_vct", MPE_VCT, MPS_ST, vct_init , vct_msg_proc );    if( AOS_SUCC != result )    {        return result;    }    result = aos_mps_reg( "mps_rc", MPS_RC, TASK_PRIO_NORMAL);    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_rc", MPE_RC, MPS_RC, rc_init , rc_msg_proc );    if( AOS_SUCC != result )    {        return result;    }    result = aos_mps_reg( "mps_ms", MPS_MS, TASK_PRIO_NORMAL);    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_ms", MPE_MS, MPS_MS, ms_init , ms_msg_proc );    if( AOS_SUCC != result )    {        return result;    }#endif#if (CONFIG_BOARD_GMPU == TRUE)#if (AOS_INCLUDE_SERVICE_RTPRTCP == TRUE)    result = aos_mps_reg("rtp_mux", MPS_RTPMUX,  TASK_PRIO_NORMAL);    if (AOS_SUCC != result)    {        AOS_ASSERT(0);        return result;    }    result = aos_mpe_reg("rtp_mux", MPE_RTPMUX, MPS_ST, rtp_mux_init_proc, rtp_mux_msg_proc);    if (AOS_SUCC != result)    {        AOS_ASSERT(0);        return result;    }#endif    #if (AOS_INCLUDE_DRV_MSPD ==   TRUE)    result = aos_mps_reg("mps_mspd",MPS_MSPD,TASK_PRIO_NORMAL);    if (AOS_SUCC != result)    {        AOS_ASSERT(0);        return result;    }    result = aos_mpe_reg("mpe_mspd", MPE_MSPD, MPS_MSPD, dsp_mpsd_init, dsp_mspd_msg_proc);    if (AOS_SUCC != result)    {        AOS_ASSERT(0);        return result;    }    #endif#endif#if( AOS_INCLUDE_SERVICE_ECC == TRUE )    result = aos_mps_reg( "mps_ecc", MPS_ECC, TASK_PRIO_NORMAL);    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_ecc", MPE_ECC, MPS_ECC, ecc_init, ecc_msg_proc);    if( AOS_SUCC != result )    {        return result;    }#endif#if (AOS_INCLUDE_SERVICE_SD == TRUE)#if( CONFIG_BOARD_EIA == FALSE )    result = aos_mps_reg( "mps_sd", MPS_SD, TASK_PRIO_ABOVE_NORMAL);    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_sd", MPE_SD, MPS_SD, sd_init , sd_run );#else    result = aos_mpe_reg( "mpe_sd", MPE_SD, MPS_ECC, sd_init , sd_run );#endif    if( AOS_SUCC != result )    {        return result;    }#endif#if( AOS_INCLUDE_SERVICE_RTX == TRUE )    result = aos_mpe_reg( "mpe_rtx", MPE_RTX, MPS_SYS, rtx_init_proc, rtx_msg_proc );    if( AOS_SUCC != result )    {        return result;    }#endif#if( CONFIG_BOARD_GDSP == TRUE )#if (AOS_INCLUDE_DRIVER_AC486 == TRUE)    result = aos_mps_reg( "mps_ac486", MPS_AC486, TASK_PRIO_ABOVE_NORMAL);    if( AOS_SUCC != result )    {        return result;    }        result = aos_mpe_reg( "mpe_ac486", MPE_AC486, MPS_RTPGDSP, ac486_init, ac486cm_run );    if( AOS_SUCC != result )    {        return result;    }#endif#endif#ifdef AOS_INCLUDE_SERVICE_MGCP_EIG_ADAPTOR#if (AOS_INCLUDE_SERVICE_MGCP_EIG_ADAPTOR ==   TRUE)    result = aos_mps_reg( "mps_mgcp", MPS_MGCP, TASK_PRIO_NORMAL);    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_gpa", MPE_MGCP_ADAPTOR, MPS_MGCP,                      mgcp_eig_adaptor_mpeinit, (MPE_RUN_ROUTINE)mgcp_eig_adaptor_msghandle);    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_stk",  MPE_MGCP_STACK, MPS_MGCP,                     mgcp_stack_mpeinit, (MPE_RUN_ROUTINE)mgcp_stack_msghandle);    if( AOS_SUCC != result )    {        return result;    }#endif#endif#ifdef AOS_INCLUDE_SERVICE_MGCP_EIA_ADAPTOR#if (AOS_INCLUDE_SERVICE_MGCP_EIA_ADAPTOR ==   TRUE)    result = aos_mps_reg( "mps_mgcp", MPS_MGCP, TASK_PRIO_NORMAL);    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_apa", MPE_MGCP_ADAPTOR, MPS_MGCP,                    mgcp_eia_adaptor_mpeinit, (MPE_RUN_ROUTINE)mgcp_eia_adaptor_msghandle);    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_stk",  MPE_MGCP_STACK, MPS_MGCP,                   mgcp_stack_mpeinit, (MPE_RUN_ROUTINE)mgcp_stack_msghandle);    if( AOS_SUCC != result )    {        return result;    }#endif#endif#if( AOS_INCLUDE_SSP_LOAD == TRUE )#if( CONFIG_BOARD_EIA == TRUE )    result = aos_mpe_reg( "mpe_load", MPE_LOAD, MPS_CLI, load_init, load_proc_msg );    if( AOS_SUCC != result )    {        return result;    }#else    result = aos_mps_reg( "mps_load", MPS_LOAD, TASK_PRIO_NORMAL);    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_load", MPE_LOAD, MPS_LOAD, load_init, load_proc_msg );    if( AOS_SUCC != result )    {        return result;    }#endif#endif#if( AOS_INCLUDE_SMP_CFM == TRUE )    result = aos_mpe_reg( "mpe_cfm", MPE_CFM, MPS_CLI, cfm_init,  cfm_proc_msg );    if( AOS_SUCC != result )    {        return result;    }#endif#if( AOS_INCLUDE_SSP_PAT == TRUE )	result = aos_mpe_reg( "mpe_pat", MPE_PAT, MPS_LOAD, pat_init,  pat_proc_msg );	if( AOS_SUCC != result )	{		return result;	}#endif#if( AOS_INCLUDE_SERVICE_BILL == TRUE )    result = aos_mps_reg( "mps_bill", MPS_BILL, TASK_PRIO_NORMAL);    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_bill", MPE_BILL, MPS_BILL, mpe_bill_init, bill_msg_proc);    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_bill_cg", MPE_BILL_CG, MPS_BILL, mpe_bill_cg_init, bill_cg_msg_proc);    if( AOS_SUCC != result )    {        return result;    }#endif#if( AOS_INCLUDE_SERVICE_BILL_TEST == TRUE )    result = aos_mpe_reg( "mpe_bill_test", MPE_BILL_TEST, MPS_BILL, mpe_bill_test_init, bill_test_msg_proc);    if( AOS_SUCC != result )    {        return result;    }#endif#if( AOS_INCLUDE_SERVICE_BILL_EIA == TRUE )    result = aos_mps_reg( "mps_bill", MPS_BILL, TASK_PRIO_NORMAL);    if( AOS_SUCC != result )    {        return result;    }    result = aos_mpe_reg( "mpe_bill_eia", MPE_BILL_EIA, MPS_BILL, mpe_eia_bill_init, eia_bill_msg_proc);    if( AOS_SUCC != result )    {        return result;    }#endif#if( AOS_INCLUDE_SERVICE_POSTBOX  == TRUE )#if( CONFIG_BOARD_EIA == FALSE )        result = aos_mps_reg("mps_postbox",MPS_POSTBOX,TASK_PRIO_NORMAL);        if( AOS_SUCC != result )        {            return result;        }        result = aos_mpe_reg( "mpe_postbox", MPE_POSTBOX, MPS_POSTBOX, postbox_init, (MPE_RUN_ROUTINE)postbox_msg_proc);        if( AOS_SUCC != result )        {            return result;        }#else        result = aos_mpe_reg( "mpe_postbox", MPE_POSTBOX, MPS_DEV, postbox_init, (MPE_RUN_ROUTINE)postbox_msg_proc );        if( AOS_SUCC != result )        {            return result;        }#endif#endif    #if AOS_INCLUDE_SERVICE_PROVISION == TRUE    result = aos_mpe_reg( "mpe_prov", MPE_PROV, MPS_DEV, provision_init_proc, NULL);    if( AOS_SUCC != result )    {        return result;    }    #endif    #if AOS_INCLUDE_SERVICE_NTP == TRUE    result = aos_mpe_reg( "mpe_ntp", MPE_NTP, MPS_DEV, ntp_init_proc, NULL);    if( AOS_SUCC != result )    {        return result;    }    #endif    #if( AOS_INCLUDE_DEV_SERVER == TRUE )    result = aos_mpe_reg( "mpe_inv", MPE_INV, MPS_DEV, inv_init, NULL );    if( AOS_SUCC != result )    {        return result;    }    #endif#if(CONFIG_BOARD_GMPU == TRUE || CONFIG_BOARD_EIA == TRUE )    result = aos_mpe_reg( "mpe_edrv", MPE_EDRV, MPS_SYS, drv_eia_init, NULL );

⌨️ 快捷键说明

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