12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- /********************************************************************************
- * File Name: MainTask.h
- * Function Describe: Header file for MainTask.c
- * Explain:
- * Writer: ShiLiangWen
- * Date: 2015-1-30
- #define PC_Q_NUM 5
- #define PC_MSG_BUF_LEN 300
- extern unsigned char PcMsgBuf[PC_Q_NUM][PC_MSG_BUF_LEN];
- extern int GpsMsgBufIndex;
- extern OS_EVENT *GpsQ;
- *******************************************************************************/
- #ifndef __MAIN_TASK_H
- #define __MAIN_TASK_H
- /************************************file begin*******************************/
-
- #include <rtl.h>
- #include "MsgQueue.h"
- //#define CMD_SEND_TEST 0x5A
- //#define CMD_SEND_SETUP 0x6B
- //#define CMD_NETSTATUS 0x7C
- //#define CMD_SAVE_SETUP 0x8D
- //#define CMD_SAVE_CTRL 0x9E
- #define USE_RUNNING_MAKE
- #ifdef USE_RUNNING_MAKE
- void RunningMake(unsigned short FileID, unsigned long line);
- #define RunMake(FileID) RunningMake(FileID, __LINE__)
- #else
- #define RunMake(FileID) (void)0
- #endif
- extern unsigned short g_usFileID;
- extern unsigned long g_ulFileLine;
- extern unsigned char g_ucUart1Activated;//判断串口1是否有数据进来,用于控制指示灯
- #define MAIN_TASK_STK_SIZE 150
- extern OS_TID idMainTask;
- extern U64 stkMainTask[MAIN_TASK_STK_SIZE];
- extern U32 g_ulSysTick;
- extern short g_sVbat;
- //extern SUT_MSG_QUEUE PcMsgQueue;
- void UC2UL(unsigned char *pUC,unsigned long *pUL);
- void UL2UC(unsigned long UL, unsigned char *pUC);
- void SysParaInit(void);
- void SystemReboot(void);
- void SysShutDown(void);
- int GetParaFromStr(char *Str,char *Para,char *Value);
- unsigned long ReadPsnFromFlash(void);
- void SavePsnToFlash(unsigned long PSN);
- void SaveParaToFlash(void);
- void ReadParaFromFlash(void);
- void IWDG_Configuration(void);
- void AscStrToHexStr(char *AscStr, char *HexStr);
- void EnterGTMode(void);
- __task void MainTask(void);
- /************************************file end ******************************************/
- #endif
|