tx_config.h

来自「基于MC908QY4的LIN从站通信例程」· C头文件 代码 · 共 34 行

H
34
字号
#ifndef _08QY4_LIN_TX_CONFIG
#define _08QY4_LIN_TX_CONFIG

/******************************************************************************
*
*       Copyright (C) 2003 Motorola, Inc.
*       All Rights Reserved
*
* Filename:     $RCSfile: Tx_Config.h,v $
* Author:       $Author: ttz778 $
* Locker:       $Locker:  $
* State:        $State: Exp $
* Revision:     $Revision: 1.1 $
*
* Functions:    LIN header file for driver configuration
*
* History:      Use the RCS command log to display revision history
*               information.
*
* Description:  
*
* Notes:        If needed the user can make changes to this file to change
*               which port pin is used to transmit
*
******************************************************************************/

// Tx could be any GPIO - but make sure this is the same port & bit as TxPORT and TxBIT below.
#define TxPIN			PTB_PTB2	
#define	TxPIN_DDR		DDRB_DDRB2	 
#define TxPORT			PTB    //make sure the port is the same as in TxPIN above.
#define TxBIT			2	   //make sure the bit is the same as in TxPIN above.	


#endif /* _08QY4_LIN_SLAVE_DRV */

⌨️ 快捷键说明

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