📄 ata_extern.h
字号:
/*********************************************************************
(c) copyright Freescale Semiconductor Hong Kong Ltd. 2004
ALL RIGHTS RESERVED
*********************************************************************
ATA Driver Module for S12 MCUs
*********************************************************************
File: ata_extern.c
Description: Prototypes of global variable of ATA 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 <ata_Data.c>.
//
#ifndef _ATA_EXTRN_G_DECL_
#define _ATA_EXTRN_G_DECL_ extern
#endif
#ifndef _H_ATA_EXTRN_ // To avoid multiple defining
#define _H_ATA_EXTRN_ // start of external variables definition
#include "FreescaleDef.h" // get my Constant & Type definitions.
// --------------------------------------------------------------------
#pragma DATA_SEG DEFAULT
// *********************************************************************
//
// Global Variables of ATA Driver
//
// *********************************************************************
//
_ATA_EXTRN_G_DECL_ muint8 gATADevInfo; // device information
#define bitATAATAPI 7 // device is ATAPI
_ATA_EXTRN_G_DECL_ muint8 gATAError; // error code from ATA device
_ATA_EXTRN_G_DECL_ muint8 gATAStatus; // current status
#define bitATAPIOMode 7
#define bitATAUDMAMode 6
_ATA_EXTRN_G_DECL_ muint32 gATALBA;
_ATA_EXTRN_G_DECL_ muint32 gATAMaxCapacity;
_ATA_EXTRN_G_DECL_ muint8 gATAUDMAMode; // current udma mode
_ATA_EXTRN_G_DECL_ muint8 gATAPIOMode; // current pio mode
_ATA_EXTRN_G_DECL_ muint8 gATAPacketLen; // ATAPI Packet Length
_ATA_EXTRN_G_DECL_ muint8 gATASenseKey; // ATA 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)
//
// *********************************************************************
// ==================================================================
// ATA_PreInitDriver() -
//
// To initialize the ATA Driver module. (Register event Sources)
// ==================================================================
void ATA_PreInitDriver(void);
// ==================================================================
// ATA_PostInitDriver() -
//
// To initialize the ATA Driver module. (Attach hook functions)
// ==================================================================
void ATA_PostInitDriver(void);
// ===========================================================
// IsrATAHwIrq() -
//
// ATA interrupt service routine.
//
// ===========================================================
void IsrATAHwIrq(void);
#endif _H_ATA_EXTRN_ // end of my external variables definition
//
// The end of file ATA_extern.h
// *********************************************************************************
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -