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

📄 typedefs.h

📁 飞思卡尔车身控制技术研讨会资料范例 基于LIN的收发通信
💻 H
字号:
/*******************************************************************************/
/**
Copyright (c) 2008 Freescale Semiconductor
Freescale Confidential Proprietary
\file       typedefs.h
\brief      Variable types and common macros
\author     Freescale Semiconductor
\author     Guadalajara Applications Laboratory RTAC Americas
\author     B05114
\version
\date        Jan/2008
* History:
*/
/*******************************************************************************/

#ifndef TYPEDEFS_H        /*prevent duplicated includes*/
#define TYPEDEFS_H

/*-- Includes ----------------------------------------------------------------*/

/*-- Types Definitions -------------------------------------------------------*/
typedef unsigned char   UINT8;  /*unsigned 8 bit definition */
typedef unsigned short  UINT16; /*unsigned 16 bit definition*/
typedef unsigned long   UINT32; /*unsigned 32 bit definition*/
typedef signed char     INT8;   /*signed 8 bit definition */
typedef short           INT16;  /*signed 16 bit definition*/
typedef long int        INT32;  /*signed 32 bit definition*/

/*-- Defines -----------------------------------------------------------------*/
/* Common Bit masks */
#define ENABLE_INTERRUPTS()  {__asm CLI; XGMCTL_XGIE = 1;}        /*interrupts enabled        */
#define DISABLE_INTERRUPTS() {__asm SEI; XGMCTL_XGIE = 0;}        /*interrupts disabled       */
#define XIRQ_ENABLE()        {asm andcc #0xBF;}  /*XIRQ enabled              */
#define WAIT()               {asm wait;}         /*enter wait mode           */
#define STOP_ENABLE()        {asm andcc #0x7F;}  /*stop mode enabled         */
#define STOP()               {asm stop;}         /*enter stop mode           */
#define NOP()                {asm nop;}          /*enter NOP asm instruction */

/* Common Constants */
#define ON          1
#define OFF         0
#define TRUE        1
#define FALSE       0
#define PASS        0u
#define FAIL        1u
#define SET         1u
#define CLEAR       0u
#define NULL           ((void *) 0)

/*-- Macros ------------------------------------------------------------------*/

/*-- Function Prototypes -----------------------------------------------------*/

#endif /* TYPEDEFS_H */

⌨️ 快捷键说明

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