lin_defs.h
来自「芯科原厂所有c8051fxx程序的例子。」· C头文件 代码 · 共 52 行
H
52 行
// Copyright (c) 2006 SILICON LABORATORIES, INC.
//
// FILE NAME : LIN_Ders.h
// TARGET MCU : C8051F52xA-53xA
// DESCRIPTION : Contains typedefs used by the LIN API.
//
#ifndef _LIN_DEFS_H_
#define _LIN_DEFS_H_
//-----------------------------------------------------------------------------
// Constants
//-----------------------------------------------------------------------------
#define LIN_MASTER 0
#define LIN_SLAVE 1
#define LIN_SLAVE_ID_0 0
#define LIN_SLAVE_ID_1 1
#define LIN_SLAVE_ID_2 2
//-----------------------------------------------------------------------------
// Typedefs
//-----------------------------------------------------------------------------
#ifndef _FALSE_
#define FALSE 0
#endif // _FALSE_
#ifndef _TRUE_
#define TRUE 1
#endif // _TRUE_
#ifndef _L_BOOL_
#define _L_BOOL_
typedef bit l_bool;
#endif // _L_BOOL_
#ifndef _L_U8_
#define _L_U8_
typedef unsigned char l_u8;
#endif // _L_U8_
#ifndef _L_U16_
#define _L_U16_
typedef unsigned int l_u16;
#endif // _L_U16_
#ifndef _L_IRQ_MASK_
#define _L_IRQ_MASK_
typedef bit l_irqmask;
#endif // _L_IRQ_MASK_
#endif // _LIN_DEFS_H_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?