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

📄 slave.h

📁 LIN Driver for S08, LIN 1.3. Source code with codewarrior
💻 H
字号:
/******************************************************************************
*                                                                     
*       Copyright (C) 2005 Freescale Semiconductor, Inc.              
*       All Rights Reserved								              
*														              
* Filename:     slave.h                
*														              
* Revision:      										              
*														              
* Functions:    Sample application for S08AW60 LINKits Slave Driver.
*         
* Description:	Header file for slave.c.
*
* Notes:        Also serves as an example of use for the LIN driver.
*
******************************************************************************/

void Delay(unsigned int n);
void RTI_ISR();
void InitDelay(void);

#define    IOBYTE(address)    (*(( volatile unsigned char*) (address)))
#define    IOWORD(address)    (*(( volatile unsigned int*) (address)))

/* Registers undefined in standard LIN drivers */
#define    PORTB       IOBYTE(0x0002)       
#define    DDRB        IOBYTE(0x0003)       
#define    PTBPE       IOBYTE(0x1844)       
#define    PORTF       IOBYTE(0x000A)       
#define    DDRF        IOBYTE(0x000B)       
#define    PORTG       IOBYTE(0x000C)       
#define    DDRG        IOBYTE(0x000D)
#define    PTGPE       IOBYTE(0x1858)
#define    PTGSE       IOBYTE(0x1859)
#define    PTGDS       IOBYTE(0x185A)
       
#define    ICGC1       IOBYTE(0x0048)
#define    ICGC2       IOBYTE(0x0049)
#define    ICGS1       IOBYTE(0x004A)
#define    SOPT        IOBYTE(0x1802)
#define    SRTISC      IOBYTE(0x1808)       

#define    LOCK        0x08 
#define    COPE		   0x80 

⌨️ 快捷键说明

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