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

📄 emos_inc.h

📁 emos是一个新的类似于ucos的内核
💻 H
字号:
/****************************************************************************
 *
 * (c) Copyright 2001,2008, EMB system, All Rights Reserved.
 * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF EMB SYSTEM, INC.
 * The copyright notice above does not evidence any actual or intended
 * publication of such source code. 
 *
 *  Subsystem:   EMOS 
 *  File:                ems_inc.h
 *  Author:          zenf zhao
 *  Description:  embedded software  operation system common include files
 *
 ****************************************************************************/
#ifndef  _EMS_INC_H_
#define _EMS_INC_H_


#ifndef  NULL
#define  NULL       (0)
#endif

/*
#define NULL         (0)
#define TRUE         (1)
#define FALSE        (0)
*/

/*
#ifndef  FALSE
#define  FALSE        (0)
#endif

#ifndef  TRUE
#define  TRUE         (1)
#endif
*/

#define EMOS_TRUE     (1)
#define EMOS_FALSE    (0)

#ifndef EMOS_CPU_MINGW_MODE
#define BOOL     int
#define ULONG   unsigned long
#define UINT32  unsigned long 
#define UINT16  unsigned short     
#define UINT8    unsigned char
#define CBOOL  unsigned char
#define SINT32  long 
#define SINT16  short     
#define SINT8    char
#elif

#endif

typedef unsigned int     bool;
typedef unsigned char    cbool;
typedef unsigned long    ulong;
typedef unsigned char    uint8;
typedef unsigned short  uint16;
typedef unsigned long    uint32;
typedef long            sint32;
typedef short          sint16;
typedef char            sint8;
typedef char            int8;
typedef short          int16;
typedef long            int32;

typedef unsigned long        EMOS_STK;                   /* Each stack entry is 16/32-bit wide*/  
#define EMOS_MALLOC(a)       malloc(a)
#define EMOS_FREE(a)         {free(a); a =0 ;}








#endif
 /*
 * Please add "$" around "Id" and "Log".
 * $Id$
 * $Log$
 *
 */
 

⌨️ 快捷键说明

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