
#ifndef __F_SYSTEM_H__
#define __F_SYSTEM_H__

#ifdef __cplusplus
 extern "C" {
#endif

// 数据类型定义

#ifndef int8
	#define int8  char
#endif

#ifndef Uint8
	#define Uint8  unsigned char
#endif

#ifndef int16
	#define int16  short int
#endif

#ifndef Uint16
	#define Uint16  unsigned short int
#endif

#ifndef int32
	#define int32  int
#endif

#ifndef Uint32
	#define Uint32  unsigned int
#endif



#define  EINT    __set_PRIMASK(0)                       //开中断
#define  DINT    __set_PRIMASK(1)                       //关中断

#define OS_ENTER_CRITICAL() __set_PRIMASK(1)            //关中断
#define OS_EXIT_CRITICAL()  __set_PRIMASK(0)            //开中断

#define FALSE   0
#define TRUE    1


#ifdef __cplusplus
}
#endif

#endif /* __F_SYSTEM_H__ */

/********************************* END OF FILE *********************************/
