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

📄 board2.h

📁 基于MC908QY4的LIN从站通信例程
💻 H
字号:
#ifndef BOARD_H
#define BOARD_H
/*******************************************************************************
*        (c) Tongji-Freescale Uni Lab Inc. 2006  all rights reserved.          *
*                                                                              *
*                                                                              *
*          Temperature sensor based on MC68HC908QY4A slave program.            *
*          =======================================================             *
*                                                                              *
*    $File Name     : Board.h$                                                 *
*    $Author        : STFD                                                     *
*    $Date          : Aug-2006$                                                *
*    $Version       : 1.1.4.0$                                                 *
*    Function:  In this file there are concentrate all board dependent         *
*               definitions like ID used in LIN, used  sensor, etc             *
*                                                                              *
*******************************************************************************/



/*******************************************************************************
*                                                                              *
*    Definition of bit in B port, where the flare LED is connected             *
*                                                                              *
*******************************************************************************/

#define SIGN_LED1 PTB_PTB3
#define SIGN_LED2 PTB_PTB4 
#define SIGN_LED3 PTB_PTB5 
#define SIGN_LED4 PTB_PTB6  

/*******************************************************************************
*                                                                              *
*    Definition of bit in A port, where the SW is connected             *
*                                                                              *
*******************************************************************************/

#define SWITCH1 PTA_PTA3
#define SWITCH2 PTA_PTA2 



/*******************************************************************************
*                                                                              *
*     Definition of used ADC channels, the single conversion always enable     *
*     (ADSCR) interrupt disable                                                *
*                                                                              *
*******************************************************************************/

#define ADCH0 0x00          /* A/D converter channel 1, input PTA0            */
#define ADCH2 0x02          /* A/D converter channel 2, input PTA4            */
#define ADCH3 0x03          /* A/D converter channel 3, input PTA5            */
#define ADCH4 0x04          /* A/D converter channel 4, input PTB0            */
#define ADCH5 0x05          /* A/D converter channel 5, input PTB1						*/

/*******************************************************************************
*                                                                              *
*    Definiton of ADC channels where the temp. sensor is conected              *
*                                                                              *
*******************************************************************************/

#define Sensor1_CH ADCH5       /* ADC channel connected to  sensor1 output    */

/*******************************************************************************
*                                                                              *
*    Definiton of assigned ID for this board, if changed it's necessary        *
*    to change it in the LINmsg.c too.                                         *
*                                                                              *
*******************************************************************************/

//#define ID_RECEIVE 0x1A     /* receiving message, ID 1A = 1A with parity      */
//#define ID_SEND 0x5B        /* sending message, ID 1B = 5B with parity        */
#define ID_RECEIVE 0x50
#define ID_SEND 0x11
//#define ID_TEST3 0x08



#endif 
/* end of BOARD_H */

⌨️ 快捷键说明

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