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

📄 os_cpu.h

📁 符合移动协议的见空系统,很有使用简直,希望多下载
💻 H
字号:
/*
*********************************************************************************************************
*                                               uC/OS-II
*                                         The Real-Time Kernel
*
*
*                             (c) Copyright 1992-2004, Micrium, Weston, FL
*                                          All Rights Reserved
*
*                                           Generic ARM Port
*
* File      : OS_CPU.H
* Version   : V1.60
* By        : Jean J. Labrosse
*
* For       : ARM7 or ARM9
* Mode      : ARM or Thumb
* Toolchain : IAR's EWARM V4.11a and higher
*********************************************************************************************************
*/

#ifndef OS_CPU_H
#define OS_CPU_H

/*
*********************************************************************************************************
*                                              DATA TYPES
*                                         (Compiler Specific)
*********************************************************************************************************
*/

#define DELAY_DIRECT  5000
#define DELAY_MODEM   30000
#define MAX_OBJECTID  0x700
#define PACK_LENGTH 500
#define DEPACK_LENGTH 250
#define 		LenSMS			53

#define MAX_PACK_SIZE 125
#define MAX_VALID_PACK_SIZE 108

#define PACK_HEADER_SIZE  17

#define MAX_MDM_PACK_SIZE 71
#define MAX_MDM_VALID_PACK_SIZE 54


#define PACK_MESSAGE_START_NUMBER       (WM_APP + 100)
#define MAKE_PACK_MSG(dwMsg)            (PACK_MESSAGE_START_NUMBER + (DWORD)dwMsg)

//#define PACK_SYSTEM_QUIT                MAKE_PACK_MSG(1);
#define PACK_SYSTEM_QUIT                (WM_APP + 2)
#define PACK_MESSAGE_START              (PACK_SYSTEM_QUIT - 1)

#define PACK_MESSAGE_RECEIVE            (WM_APP + 120)
#define PACKAGE_REFRESH_STATE      (WM_APP + 121)
#define PACKAGE_QUERY_SUCCESS    (WM_APP + 122)
#define MESSAGE_SHOW           (WM_APP + 123)
#define MESSAGE_SITE_OPEN      (WM_APP + 124)

typedef unsigned char  BOOLEAN;
typedef unsigned long       DWORD;
typedef unsigned char       BYTE;
typedef unsigned short      WORD;

typedef signed char    SCHAR;
typedef unsigned char  INT8U;                    /* Unsigned  8 bit quantity                           */
typedef signed   char  INT8S;                    /* Signed    8 bit quantity                           */
typedef unsigned short INT16U;                   /* Unsigned 16 bit quantity                           */
typedef signed   short INT16S;                   /* Signed   16 bit quantity                           */
typedef unsigned long int   INT32U;                   /* Unsigned 32 bit quantity                           */
typedef signed  long int   INT32S;                   /* Signed   32 bit quantity                           */
typedef float          FP32;                     /* Single precision floating point                    */
typedef double         FP64;                     /* Double precision floating point                    */

typedef unsigned char UCHAR;
typedef unsigned int        UINT;

#ifndef  FALSE
#define  FALSE                     0
#endif

#ifndef  TRUE
#define  TRUE                      1
#endif

///////////define ack here/////////////////
#define ACK_NORMAL 0x00
#define ACK_CONDIT 0x01
#define ACK_INVALID 0x02
#define ACK_LENGTH 0x03
#define ACK_CRC 0x04
#define ACK_OTHER 0xFE
#define ACK_CMMD 0xFF

///////////define ack here/////////////////
#define DEAL_NORMAL 0x00
#define DEAL_BUSY 0x01
#define DEAL_CMMD 0x80

//=======================================================================================================
	#define PRTCL_POS_SITE_NO		3
	#define PRTCL_POS_DEVICE_NO	7

	#define PRTCL_POS_SN_LOW		8
	#define PRTCL_POS_SN_HIGH		9
	#define PRTCL_POS_NP			10
	#define PRTCL_POS_APID			11
	#define PRTCL_POS_TYPE			12
	#define PRTCL_POS_CMMD			13
	#define PRTCL_POS_VARIABLE		14



#endif

⌨️ 快捷键说明

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