l_types.h

来自「MC68HC908QY4 LIN-BUS源码(编译环境:CodeWarriorV」· C头文件 代码 · 共 64 行

H
64
字号
/* ************************************************************************ *
 *                                                                          *
 *                  Volcano Communications technologies AB                  *
 *                            All rights reserved                           *
 *                                                                          *
 * ************************************************************************ */

/* ************************************************************************ *
 *         File: l_types.h                                                  *
 *  Description: Contains the basic LIN data types that are target-specific *
 * ************************************************************************ */


#ifndef __L_TYPES_H__
#define __L_TYPES_H__

/* Global macro definitions */
#define L_NULL                 ((void *)0)
#define L_TRUE                 ((l_bool)1)
#define L_FALSE                ((l_bool)0)

/* Define the prefix for all library functions */
#define L_LIB_PREFIX

/* Following two macros may be defined by the user elsewhere */
#ifndef L_ROM_PREFIX
  #define L_ROM_PREFIX const
#endif
#ifndef L_ROM_POSTFIX
  #define L_ROM_POSTFIX
#endif

#ifndef L_RAM_PREFIX
  #define L_RAM_PREFIX
#endif
#ifndef L_RAM_POSTFIX
  #define L_RAM_POSTFIX near
#endif

/* definition of global data types */
typedef unsigned char       l_bool;
typedef unsigned char       l_u8;
typedef unsigned short      l_u16;
typedef unsigned char       l_ioctl_op;
typedef unsigned char       l_irqmask;
typedef unsigned char *near l_u8ram_handle;

/* This library is of the interrupt Rx type */
#define L_LIB_RX_IRQ        

/* define if the library only supports slave operation */
#define L_NO_MASTER

/* define if the library will support only one interface.
   This should be the case, if the MCU has only one interface.
*/
#define SINGLE_INTERFACE_LIBRARY

/* define if ioctl bittime reading is not needed */
#define NO_RD_BITTIME


#endif /* __L_TYPES_H__ */

⌨️ 快捷键说明

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