我使用“TCPIpU-UppServer”和声示例。如果我知道FrRotos不被使用。在MHC中没有检查/有init进程空隙SysSyListI化(空洞*数据){SysLCKLIQualI化(NULL);SysSyDeNCONRY初始化(SysSeDeCurnInsixLox0,(SysSimuleMyInit)空);SysSyDeNoviPrimeCycFig(SysSLCKYSythValueCyGET());SysPosisSimulalIZE省();SysObj.DrVMIIM= DR;索引x0,(const SysMeuleMexI**const)和(DrvmiMimItDATA);SysObj.DrvtMR0= DrviTMR*初始化(DrviTrMyLoxxx0,(SysSimeMeuleInI*)和DrvtMR0IITDATA);SysObj.DrvtMR1= DrviTMR*初始化(DRVIVTMRIX索引X1,(SysSimeMeuleII**)和DRVTMR1IITDATA);VI- Mimimi初始化(Drvmimim)RyTySt(IntVoTraceT2,InPialTyryLeal4);SysStInTyVoTraceRyLyLe0.0;SysSytInVoTrRePrimeRealSyt集合(InthVoTraceT1,InPosiRyTyLeLe1);SysSytInVoCube PrimoRealSyt集(IntVCtoReT1 T1,InSub PrimoRealIyLe0);SysIntIn RealSaleIZE();PysS0x765632;SysInSysStInTyVoCuthPrimeRealSt集(InthVoTraceIn0,InSub PrimoRyTyReal3);SysSytIn外部中断TrutGrGeSt(InExtAuthalAuthIn SooSureC0,InEdEdGeTeGeReGueLead);SysSytIn VECRTRORYPRORITY SET(IntViTraceIt1,InPialTyrIyLeal6);SysSytIn向量SuthPixRealTySt集(IntViTraceIt1,InSub PrimoRyTyLeLe3);SysSytInAutoTraceTrimeGeC1,IntEdGeGeTraceGyLead;IEC0SET=IIE00In0IIa掩码;//启用In0ISR IEC0SET=IEC0In I1掩码;/ /启用Int1-ISR SysObj.SyrMy= SysTrMRX初始化(SysthTMR.Idxx0),(const)SysSytIngVeltRePiTrimeSt集(InthValtoReTythEnter,InPrimRythyLeal5);SysSytInvValpSePrimoRealSt集(InthVoCTREST,InSub PrimoRyTyLeReal3);SysObj.TCPIp=TCPIpsi-StaskIn();SysIntIn Abable();
以上来自于百度翻译
以下为原文
I use the "tcpip_udp_server" harmony example. If I know FreeRTOS is not used. / In MHC not checked /.
There is init procedure
void SYS_Initialize ( void* data )
{
SYS_CLK_Initialize( NULL );
SYS_DEVCON_Initialize(SYS_DEVCON_INDEX_0, (SYS_MODULE_INIT*)NULL);
SYS_DEVCON_PerformanceConfig(SYS_CLK_SystemFrequencyGet());
SYS_PORTS_Initialize();
BSP_Initialize();
sysObj.drvMiim = DRV_MIIM_Initialize (DRV_MIIM_INDEX_0, (const SYS_MODULE_INIT * const) &drvMiimInitData);
sysObj.drvTmr0 = DRV_TMR_Initialize(DRV_TMR_INDEX_0, (SYS_MODULE_INIT *)&drvTmr0InitData);
sysObj.drvTmr1 = DRV_TMR_Initialize(DRV_TMR_INDEX_1, (SYS_MODULE_INIT *)&drvTmr1InitData);
SYS_INT_VectorPrioritySet (INT_VECTOR_T2, INT_PRIORITY_LEVEL4);
SYS_INT_VectorSubprioritySet (INT_VECTOR_T2, INT_SUBPRIORITY_LEVEL0);
SYS_INT_VectorPrioritySet (INT_VECTOR_T1, INT_PRIORITY_LEVEL1);
SYS_INT_VectorSubprioritySet (INT_VECTOR_T1, INT_SUBPRIORITY_LEVEL0);
SYS_INT_Initialize();
PRISS = 0x76543210;
SYS_INT_VectorPrioritySet (INT_VECTOR_INT0, INT_PRIORITY_LEVEL7);
SYS_INT_VectorSubprioritySet (INT_VECTOR_INT0, INT_SUBPRIORITY_LEVEL3);
SYS_INT_ExternalInterruptTriggerSet (INT_EXTERNAL_INT_SOURCE0,INT_EDGE_TRIGGER_RISING);
SYS_INT_VectorPrioritySet (INT_VECTOR_INT1, INT_PRIORITY_LEVEL6);
SYS_INT_VectorSubprioritySet (INT_VECTOR_INT1, INT_SUBPRIORITY_LEVEL3);
SYS_INT_ExternalInterruptTriggerSet(INT_EXTERNAL_INT_SOURCE1,INT_EDGE_TRIGGER_FALLING);
IEC0SET =_IEC0_INT0IE_MASK; // enable INT0 ISR
IEC0SET =_IEC0_INT1IE_MASK; // enable INT1 ISR
sysObj.sysTmr = SYS_TMR_Initialize(SYS_TMR_INDEX_0, (const SYS_MODULE_INIT * const)&sysTmrInitData);
SYS_INT_VectorPrioritySet (INT_VECTOR_ETH, INT_PRIORITY_LEVEL5);
SYS_INT_VectorSubprioritySet (INT_VECTOR_ETH, INT_SUBPRIORITY_LEVEL3);
sysObj.tcpip = TCPIP_STACK_Init();
SYS_INT_Enable();
APP_Initialize();
}
Thank you
Elsinpa