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

📄 lin.h

📁 芯科原厂所有c8051fxx程序的例子。
💻 H
字号:
// Copyright (c) 2006 SILICON LABORATORIES, INC.
//
// FILE NAME   : LIN.h
// TARGET MCU  : C8051F52xA-53xA
// DESCRIPTION : Header file for LIN API
//

#ifndef _LIN_H_
#define _LIN_H_

#include "LIN_Defs.h"

//-----------------------------------------------------------------------------
// Constant Definitions
//-----------------------------------------------------------------------------

// If LIN_MODE is LIN_MASTER, the device will operate in LIN master mode.
// If LIN_MODE is LIN_SLAVE, the device will operate in LIN slave mode.
#define  LIN_MODE                LIN_MASTER

// Define the System Clock frequency here.
// SYSCLK_Init () will configure the system clock to this frequency.
#define  SYSCLK                  12250000

// Set the LIN_BIT_RATE here.
// LIN_BIT_RATE is ignored if LIN_MODE is LIN_SLAVE and AUTOBAUD is TRUE.
#define  LIN_BIT_RATE            20000

// To enable autobaud, set AUTOBAUD to TRUE.
// AUTOBAUD is ignored if LIN_MODE is LIN_MASTER.
#define  AUTOBAUD                TRUE

// If device is LIN_MASTER, it schedules frames and updates signals on a
// periodic time base called the system tick.
// Define the frequency of the system tick here.
// FREQUENCY_SYSTEM_TICK is ignored if LIN_MODE is LIN_SLAVE.
#define  FREQUENCY_SYSTEM_TICK   100


#include "LIN_Init.h"
#include "LIN_Driver.h"
#include "LIN_Interface.h"
#include "LIN_Frame_Management.h"
#include "LIN_Signal.h"
#include "LIN_Diagnostic.h"
#include "LIN_ISR.h"
#include "LIN_Main.h"


#endif	// _LIN_H_

⌨️ 快捷键说明

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