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

📄 cmmmain.c

📁 2410下面通过MOTO手台录音程序;自己用的
💻 C
字号:
#include <vxWorks.h>
#include <ioLib.h>
#include <stdio.h>
#include <string.h>
#include <sockLib.h> 
#include <socket.h>
#include <time.h>
#include "fioLib.h"
#include "CmmCom.h"
#include "Nmmglobal.h"
#include "smmmsg.h"
/*** DEF ALL MESSAGE****/


M700_STATUS_MACHE g_RCDmachine={0,NULL,"uninit"};
M700_STATUS_MACHE g_M700machine={0,NULL,"uninit"};
M700_STATUS_MACHE g_RSmachine={0,NULL,"uninit"};


/****************************************************************
	description:	Add all command to the command structure one  by one
	InPut:		Non
	OutPut:		Non
	Return:		The result of add all command 
				
				
****************************************************************/
void Cmm_main()
{
  printf("run status start\n");
  RCD_IO_init();
 
  taskSpawn ("tUART", UART1_TSK_PRI, 0, CMM_MSG_STACK_SIZE,
                 (FUNCPTR)CMM_M700_TSK,0,0,0,0,0,0,0,0,0,0);
  
}
void cmm_msg_receive(void)
{
    MSG		imsg,omsg,omsg1;
    int result;
    int type;
  
	do
	{	
		result = msgQReceive(g_msgQCMM_Receive,(char *)&imsg,sizeof(imsg),WAIT_FOREVER);
		if(result == ERROR)
			{
				logMsg("cmm Receive msg failed,pls check\n",0,0,0,0,0,0);
				continue;
			}	
		if( result > 0 )
			{
				type = imsg.msg_header.MsgType;
				switch( type )
					{
						case NMM_IPCONFIG:								
													
							break;						
						case NMM_SMM_SAVE:								
													
							break;	
						default:
							break;

					}

			}
	}while(1);
}

⌨️ 快捷键说明

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