lin.h

来自「芯科原厂所有c8051fxx程序的例子。」· C头文件 代码 · 共 50 行

H
50
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?