slave.cfg

来自「LINKit for dz60 freescale code warrior」· CFG 代码 · 共 44 行

CFG
44
字号
#ifndef LINCFG_H
#define LINCFG_H

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

/* CPU bus freq  = 16 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)
	104 = 16 MHz /(9600 * 16)
*/
#define LIN_BAUDRATE			104u		 /*(16MHz bus clock = SCI Modul clock; 9600 baudrate -> 1/9600 = Tbit = 104us*/



#endif /* !define (LINCFG_H) */

⌨️ 快捷键说明

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