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

📄 slave.cfg

📁 飞思卡尔车身控制技术研讨会资料 里面有LIN的主从节点源程序
💻 CFG
字号:
#ifndef LINCFG_H
#define LINCFG_H

/******************************************************************************
*                                                                     
*       Copyright (C) 2005 Freescale Semiconductor, Inc.              
*       All Rights Reserved								              
*														              
* Filename:     slave.cfg                
*														              
* Revision:      										              
*														              
* Functions:    LIN Driver static configuration file for LINS08 LINKits Slave sample
*         
* Description:	Example file that can be modified by the user.
*
* Notes:        
*
******************************************************************************/

/* CPU bus freq  = 8 MHz */
/* SCI (LIN) freq = 9.6 Kbit */

/*
    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

/*
	This definition configures the LIN bus baud rate.
	This value shall be set according to target MCU 
	SCI register usage.
	LIN_BAUDRATE = BUSCLK / ( Baud Rate*16)
	52 = 8 MHz /(9600 * 16)
*/
#define LIN_BAUDRATE			52u		 /*(8MHz bus clock = SCI Modul clock; 9600 baudrate -> 1/9600 = Tbit = 104us*/



#endif /* !define (LINCFG_H) */

⌨️ 快捷键说明

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