f53x_linsnooper_init.h
来自「8051试验程序 基础教材」· C头文件 代码 · 共 67 行
H
67 行
//-----------------------------------------------------------------------------
// F53x_LINSnooper_Init.h
//-----------------------------------------------------------------------------
// Copyright 2006 Silicon Laboratories, Inc.
// http://www.silabs.com
//
// File Description:
//
// This file contains all definitions used to set the F52x/F53x LIN interface
// in either Slave or Master Mode.
//
//
// FID:
// Target: C8051F53x
// Tool chain: KEIL C51 7.20
// Command Line: None
// Project Name: LIN Snooper
//
// Release 1.0
// -Initial Revision
// -01 NOV 2006
//
//
//-----------------------------------------------------------------------------
// Header File Preprocessor Directive
//-----------------------------------------------------------------------------
#ifndef __LIN_INI__
#define __LIN_INI__
//-----------------------------------------------------------------------------
// Here the system clock in Hz must be defined
//-----------------------------------------------------------------------------
#ifndef SYSCLK
#define SYSCLK 24500000L // System clock in Hz
#endif
//-----------------------------------------------------------------------------
// Here the LIN operating mode must be defined
//-----------------------------------------------------------------------------
#define CKHMODE ENHANCEDCHK // CLASSICCHK or ENHANCEDCHK
//-----------------------------------------------------------------------------
// Baud rate related definitions - LIN Slave
//-----------------------------------------------------------------------------
#define _SLAVE_BAUD_MODE AUTOBAUD // AUTOBAUD or MANUALBAUD
#if _SLAVE_BAUD_MODE == MANUALBAUD
#define _LINBAUD 19200L // define the baud rate
#define _LINMUL 0x00 // Multiplier Value
#define _LINPRESCALER 0x01 // Prescaler
#define _LINDIV 0x13F // Divider
#else
#define _LINPRESCALER 0x01 // Prescaler
#define _LINDIV 0x13D // Divider
#endif
#endif // endif definition of __LIN_INI__
//-----------------------------------------------------------------------------
// End Of File
//-----------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?