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

📄 cf_extern.h

📁 文件包含了开发motorola mc9s12uf32单片机一些源码。  1、USB device 实现  2、CF卡读取  3、SD卡读取  4、ATA硬盘读取
💻 H
字号:
/*********************************************************************
 
  (c) copyright Motorola Semiconductors (HK) Ltd. 2002
  ALL RIGHTS RESERVED
 
 *********************************************************************
 
                   CF Driver Module for S12 MCUs 
 
 *********************************************************************

  File:			cf_extern.c
 
  Description:  Prototypes of global variable of CF Driver
 
  Date:         Jul. 2002
  Author:		Derek Lau
  
 ********************************************************************/




//
//  This is the header file of all the global variables for modules
//   to include in. All the global variables allocation is done in
//   file <cf_Data.c>.
//
#ifndef _CF_EXTRN_G_DECL_
#define _CF_EXTRN_G_DECL_ extern
#endif


#ifndef _H_CF_EXTRN_		// To avoid multiple defining
#define _H_CF_EXTRN_		// start of external variables definition

#include	"FreescaleDef.h"				// get my Constant & Type definitions.

// --------------------------------------------------------------------

#pragma DATA_SEG DEFAULT

// *********************************************************************
//
// 					Global Variables of ATA Driver
//
// *********************************************************************
//

 
_CF_EXTRN_G_DECL_ muint8	gCFError;			// error code from ATA device

_CF_EXTRN_G_DECL_ muint8	gCFStatus;			// current status
 #define	kATAPIOMode		0x80				
 #define	kATAUDMAMode	0x40

_CF_EXTRN_G_DECL_ muint32	gCFMaxCapacity;
_CF_EXTRN_G_DECL_ muint8	gCFUDMAMode;		// current udma mode
_CF_EXTRN_G_DECL_ muint8	gCFPIOMode;			// current pio mode
_CF_EXTRN_G_DECL_ muint8	gCFSenseKey;		// CF Sense Key



// code is placed in the main code area.
#pragma CODE_SEG	DEFAULT



// *********************************************************************
//
//	               EXPORTED FUNCTIONS FOR OTHER MODULES
//
//   (Can be called by other modules like Application, Drivers...etc)
//
// *********************************************************************


// ==================================================================
//   CF_PreInitDriver() -
//
//     To initialize the ATA Driver module. (Register event Sources)
// ==================================================================
void	CF_PreInitDriver(void);



// ==================================================================
//   CF_PostInitDriver() -
//
//     To initialize the ATA Driver module. (Attach hook functions)
// ==================================================================
void	CF_PostInitDriver(void);


// ===========================================================
//   IsrATAHwIrq() -
//  
//		ATA interrupt service routine.
//
// ===========================================================
void IsrATAHwIrq(void);





#endif	_H_CF_EXTRN_		// end of my external variables definition
//
// The end of file CF_extern.h 
// *********************************************************************************

⌨️ 快捷键说明

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