📄 cfg_conf.c
字号:
if( AOS_SUCC != result ) { return result; }#endif#if(CONFIG_BOARD_GMPU == TRUE || CONFIG_BOARD_EIA == TRUE ) result = aos_mpe_reg( "mpe_aping", MPE_APING, MPS_SYS, aping_init_proc, aping_msg_proc ); if( AOS_SUCC != result ) { return result; }#endif#if(AOS_INCLUDE_SMP_SNMP == TRUE ) result = aos_mps_reg( "mps_snmp", MPS_SNMP, TASK_PRIO_NORMAL ); if( AOS_SUCC != result ) { return result; } result = aos_mpe_reg( "mpe_snmp", MPE_SNMP, MPS_SNMP, snmp_main_init, snmp_proc_msg ); if( AOS_SUCC != result ) { return result; }#if(AOS_INCLUDE_SMP_TRACE == TRUE ) result = aos_mpe_reg( "mpe_trace", MPE_TRACE, MPS_SNMP, trace_msg_init, NULL ); if( AOS_SUCC != result ) { return result; }#endif#if( AOS_INCLUDE_SMP_ALARM == TRUE ) result = aos_mpe_reg( "mpe_alarm", MPE_ALARM, MPS_SNMP, alarm_init, alarm_proc_msg); if( AOS_SUCC != result ) { return result; }#endif#if( AOS_INCLUDE_SERVICE_TRC == TRUE ) result = aos_mpe_reg( "mpe_trc", MPE_TRC, MPS_SNMP, trc_init, trc_msg_proc); if( AOS_SUCC != result ) { return result; }#endif#endif#if( AOS_INCLUDE_SSP_FS== TRUE ) result = aos_mps_reg( "mps_fs", MPS_FS, TASK_PRIO_NORMAL ); if( AOS_SUCC != result ) { return result; } result = aos_mpe_reg( "mpe_fs", MPE_FS, MPS_FS, fs_init_proc, NULL); if( AOS_SUCC != result ) { return result; }#endif#if(AOS_INCLUDE_SSP_TEST == TRUE ) result = aos_mps_reg("mps_test",MPS_TEST,TASK_PRIO_NORMAL); if( AOS_SUCC != result ) { return result; } result = aos_mpe_reg( "mpe_test",MPE_TEST,MPS_TEST,aos_test_init,aos_test_msg_proc); if( AOS_SUCC != result ) { return result; }#endif#if (AOS_INCLUDE_INET_DNSCLIENT == TRUE) result = aos_mpe_reg( "mpe_dnc", MPE_DNSCLIENT, MPS_INET, dnc_init_proc, NULL); if( AOS_SUCC != result ) { return result; }#endif#if (AOS_INCLUDE_INET_DHCPCLIENT == TRUE) result = aos_mpe_reg( "mpe_dhc", MPE_DHCPCLIENT, MPS_INET, dhc_init_proc, NULL); if( AOS_SUCC != result ) { return result; }#endif#if( AOS_INCLUDE_SERVICE_Q931== TRUE ) result = aos_mps_reg( "mps_q931", MPS_Q931, TASK_PRIO_NORMAL ); if( AOS_SUCC != result ) { return result; } result = aos_mpe_reg( "mpe_q931", MPE_Q931, MPS_Q931, q931_init_proc, q931_msg_proc ); if( AOS_SUCC != result ) { return result; }#endif#if (AOS_INCLUDE_SERVICE_FAX == TRUE) result = aos_mpe_reg( "mpe_fax", MPE_FAX, MPS_INET, fax_init_proc, fax_msg_proc); if( AOS_SUCC != result ) { return result; }#endif#if (AOS_INCLUDE_SERVICE_FAX_D == TRUE) result = aos_mpe_reg( "mpe_faxd", MPE_FAXD, MPS_INET, faxd_init_proc, faxd_msg_proc); if( AOS_SUCC != result ) { return result; }#endif#if (AOS_INCLUDE_SERVICE_ISVH == TRUE)#if (CONFIG_BOARD_EIA == TRUE ) result = aos_mpe_reg( "mpe_isvh", MPE_ISVH, MPS_INET, rtp_isvh_init_proc, rtp_isvh_msg_proc ); if( AOS_SUCC != result ) { return result; }#else result = aos_mpe_reg( "mpe_isvh", MPE_ISVH, MPS_SYS, rtp_isvh_init_proc, NULL ); if( AOS_SUCC != result ) { return result; }#endif#endif#if (AOS_INCLUDE_SERVICE_RADIUS_CLIENT == TRUE) result = aos_mps_reg("mps_radc", MPS_RADC, TASK_PRIO_NORMAL); if( AOS_SUCC != result ) { return result; } result = aos_mpe_reg( "mpe_radc", MPE_RADIUSCLIENT, MPS_RADC, mpe_radius_client_init, radc_msg_proc); if( AOS_SUCC != result ) { return result; }#endif#if (AOS_INCLUDE_SERVICE_ACCOUNT == TRUE) result = aos_mps_reg( "mps_acc", MPS_ACC, TASK_PRIO_ABOVE_NORMAL); if( AOS_SUCC != result ) { return result; } result = aos_mpe_reg( "mpe_st", MPE_ACCOUNT, MPS_ACC, account_init, account_msg_proc ); if( AOS_SUCC != result ) { return result; }#endif#if( AOS_INCLUDE_SERVICE_CC == TRUE ) result = aos_mps_reg( "mps_cc", MPS_CC, TASK_PRIO_NORMAL); if( AOS_SUCC != result ) { return result; } result = aos_mpe_reg( "mpe_cc", MPE_CC, MPS_CC, cc_init, cc_msg_proc); if( AOS_SUCC != result ) { return result; }#endif#if (AOS_INCLUDE_SERVICE_NATCHECK==TRUE) result = aos_mpe_reg( "mpe_natcheck", MPE_NATCHECK, MPS_DEV, natcheck_mngt_init_proc, (MPE_RUN_ROUTINE)natcheck_mngt_msg_proc); if( AOS_SUCC != result ) { return result; }#endif#if (AOS_INCLUDE_WEB_SERVER == TRUE) result = aos_mpe_reg( "mpe_webs", MPE_WEBS, MPS_DEV, NULL , NULL ); if( AOS_SUCC != result ) { return result; }#endif#if (AOS_INCLUDE_SERVICE_TT_CLIENT == TRUE) result = aos_mps_reg("mps_tt", MPS_TT, TASK_PRIO_NORMAL); if( AOS_SUCC != result ) { return result; } result = aos_mpe_reg( "mpe_tt", MPE_TT_CLIENT, MPS_TT, mpe_tt_client_init, tt_msg_proc); if( AOS_SUCC != result ) { return result; }#endif#if( AOS_INCLUDE_SERVICE_NAT == TRUE ) result = aos_mpe_reg( "mpe_nat", MPE_NAT, MPS_INET, nat_mpe_init, nat_msg_handle); if( AOS_SUCC != result ) { return result; }#endif#if( AOS_INCLUDE_SERVICE_DHCP_SERVER == TRUE ) result = aos_mpe_reg( "mpe_dhs", MPE_DHS, MPS_INET, dhs_mngt_init_proc, dhs_mngt_msg_proc); if( AOS_SUCC != result ) { return result; }#endif#if( AOS_INCLUDE_SERVICE_P2P_NN == TRUE || AOS_INCLUDE_SERVICE_P2P_SN_CN == TRUE) result = aos_mps_reg( "mps_p2p2", MPS_P2P2, TASK_PRIO_NORMAL); if( AOS_SUCC != result ) { return result; } result = aos_mpe_reg( "mpe_mngt", MPE_P2P_MNGT, MPS_P2P2, p2p_mngt_init_proc, (void(*)(MSG_S*,VOID*))p2p_mngt_msg_proc); if( AOS_SUCC != result ) { return result; } result = aos_mpe_reg( "mpe_trans", MPE_P2P_TRANS, MPS_P2P2, p2p_trans_init_proc, (void(*)(MSG_S*,VOID*))p2p_trans_msg_proc); if( AOS_SUCC != result ) { return result; }#endif#ifdef _EIA2000V3 result = aos_mpe_reg( "mpe_pbxl2", MPE_IPPBX_L2, MPS_SYS, NULL, ippbx_l2_msg_proc); if( AOS_SUCC != result ) { return result; }#endif#if( AOS_INCLUDE_SERVICE_SS7 == TRUE ) result = aos_mps_reg( "mps_ss7", MPS_SS7, TASK_PRIO_NORMAL ); if( AOS_SUCC != result ) { return result; } result = aos_mpe_reg( "mpe_ss7", MPE_SS7, MPS_SS7, ss7_init, ss7_msg_proc ); if( AOS_SUCC != result ) { return result; }#endif#if ( AOS_INCLUDE_SERVICE_H323 == TRUE ) result = aos_mps_reg( "mps_h323", MPS_H323, TASK_PRIO_NORMAL ); if( AOS_SUCC != result ) { return result; } result = aos_mpe_reg( "mpe_h323", MPE_H323, MPS_H323, mpe_h323_init, mpe_h323_msg_proc); if( AOS_SUCC != result ) { return result; }#endif#if ( AOS_INCLUDE_SERVICE_SDFS_FTPS == TRUE ) result = aos_mps_reg( "mps_sdfs", MPS_FILES, TASK_PRIO_NORMAL ); if( AOS_SUCC != result ) { return result; } result = aos_mpe_reg( "mps_sdfs", MPE_FILES, MPS_FILES, files_init_proc, files_msg_proc); if( AOS_SUCC != result ) { return result; } result = aos_mps_reg( "mps_ftps", MPS_FTPS, TASK_PRIO_NORMAL ); if( AOS_SUCC != result ) { return result; } result = aos_mpe_reg( "mps_ftps", MPE_FTPS, MPS_FTPS, ftps_init_proc, ftps_msg_proc); if( AOS_SUCC != result ) { return result; }#endif#if (AOS_INCLUDE_SERVICE_ROUTE_SRV_SERVER == TRUE || AOS_INCLUDE_SERVICE_ROUTE_SRV_CLIENT == TRUE) result = aos_mps_reg( "mps_rs", MPS_RS, TASK_PRIO_NORMAL ); if( AOS_SUCC != result ) { return result; } result = aos_mpe_reg( "mpe_rs", MPE_RS, MPS_RS, rs_init, rs_msg_proc); if( AOS_SUCC != result ) { return result; }#endif return AOS_SUCC;}U32 m_mini_usr_init(){ U32 result;#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_mini_db_init, NULL ); if( AOS_SUCC != result ) { return result; }#endif#if( AOS_INCLUDE_INET_IP == TRUE ) result = aos_mps_reg( "mps_inet", MPS_INET, TASK_PRIO_NORMAL); if( AOS_SUCC != result ) { return result; } result = aos_mps_reg( "mps_fib", MPS_FIB, TASK_PRIO_NORMAL); if( AOS_SUCC != result ) { return result; } result = aos_mpe_reg( "mpe_fib", MPE_FIB, MPS_FIB, fib_init , fib_msg_proc ); 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_IFNET == TRUE ) 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 ); 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; }#endif#if( AOS_INCLUDE_SSP_LOAD == TRUE )#if( CONFIG_BOARD_EIA == FALSE ) 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; }#else result = aos_mpe_reg( "mpe_load", MPE_LOAD, MPS_DEV, load_init, load_proc_msg ); if( AOS_SUCC != result ) { return result; }#endif#endif#if( AOS_INCLUDE_SSP_FS== TRUE ) result = aos_mps_reg( "mps_fs", MPS_FS, TASK_PRIO_NORMAL ); if( AOS_SUCC != result ) { return result; } result = aos_mpe_reg( "mpe_fs", MPE_FS, MPS_FS, fs_init_proc, NULL); if( AOS_SUCC != result ) { return result; }#endif#if( CONFIG_OS_VXWORKS == TRUE ) result = flash_init_task(); if( AOS_SUCC != result ) { return result; }#endif return AOS_SUCC;}#if CONFIG_OS_WINDOWS == TRUEint isIpPbxBoard(){ return FALSE;}U32 is_eia_support_double_code_zone(VOID){ return FALSE;}U32 is_code_zone_fault(U32 is_master_area){ return FALSE;}U32 flash_code_syn(U8 syn_direction){ return FALSE;}U32 flash_code_is_same(VOID){ return FALSE;}VOID flash_code_destroy( U32 is_master_area ){}U32 flash_mem_write_ex ( U32 ulFlashStartAddr, page_t *page, U32 ulRamStartAddr, U32 ulWriteCount ){ return 0;}#endif#if (AOS_INCLUDE_SERVICE_FAX == FALSE&& CONFIG_OS_WINDOWS == TRUE&&CONFIG_BOARD_EIA==TRUE&&AOS_INCLUDE_EMUL == TRUE)BOOL_T is_store_forward_fax(U16 usPortId){ return FALSE;}#endif#ifdef __cplusplus#if __cplusplus}#endif #endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -