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

📄 lincfg.h

📁 基于摩托罗拉(现在飞思卡尔)系列MC68HC908单片机开发车辆ECU系统!
💻 H
字号:
#ifndef LINCFG_H
#define LINCFG_H
/******************************************************************************
*
*       Copyright (C) 2003 Motorola, Inc.
*       All Rights Reserved
*
* Filename:     $RCSfile: lincfg.h,v $
* Author:       $Author: ttz778 $
* Locker:       $Locker:  $
* State:        $State: Exp $
* Revision:     $Revision: 1.1 $
*
* Functions:    LIN Driver static configuration file for Motorola API
*
* History:      Use the RCS command log to display revision history
*               information.
*
* Description:  This is a template file for LIN driver configuration.
*               It should be modified by the user.
*
*               Define the macros as shown below.
*
*               If the file name is changed the LINCFGH macro with new 
*               file name should be defined in the processor command line.
*
* Notes:        
*
******************************************************************************/

/*
    This definition set the number of user-defined timer clocks
    (LIN_IdleClock service calls), recognized as "no-bus-activity" 
    condition.
    This number shall not be greater than 0xFFFF.

#define LIN_IDLETIMEOUT         100u
*/




#if defined(HC08AZ32)

/*
	This definition configures the LIN bus baud rate.
	Note: this value shall be set according to target MCU 
	SCI register usage.
	HC08AZ32: the 8-bit value is masked by 0x37
	and put into SCBR register;

#define LIN_BAUDRATE			0x12u  
*/

#if defined(MASTER)
/* 
	This definition configures the timer clock rate.
    Only for Master node.
	This value shall be set according to target MCU 
	timer prescaler register usage.
	HC08AZ32: the 8-bit value is masked by 0x07
	and put into T(A)SC register;

#define LIN_TIMERPRESCALER		2u  
*/

/*
	This definition set the length of one bit transmission 
	period on the target MCU.
    Only for Master node.
	Due to 16-bit counters on target MCU this value 
	shall not be greater than 0xFFFF.
    For correct timeouts computation this value
    shall have qualificator 'l'.

#define LIN_BITTIME				50ul    
*/
#endif /* defined(MASTER) */

#endif /* defined(HC08AZ32) */




#endif /* !define (LINCFG_H) */

⌨️ 快捷键说明

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