?? hal_emb.c
字號:
/*-------------------------------------------------------------------------
//
// File: hal_emb.c
// generic hal hardware interface routines for embedded targets
//
// Copyright (c) 1998, 2001 Epson Research and Development, Inc.
// All Rights Reserved.
//
// this file performs minimal setup required, since most embedded
// targets address the display controller at fixed memory addresses
// stored in appcfg.h
//-----------------------------------------------------------------------*/
#include "hal.h"
#include "assert.h"
#include "nonsefns.h"
/*-----------------------------------------------------------------------*/
static const char Revision[] = "HAL_EMB.C=$Revision: 6 $";
/*-----------------------------------------------------------------------*/
volatile DWORD _RegLinearAddress;
volatile DWORD _DispLinearAddress;
/*-------------------------------------------------------------------------
//
// _InitPlat()
//
//-----------------------------------------------------------------------*/
int _InitPlat(void)
{
_RegLinearAddress = 0;
_DispLinearAddress = 0;
return ERR_OK;
}
/*-------------------------------------------------------------------------
//
// seGetLinearDispAddr()
//
//-----------------------------------------------------------------------*/
DWORD seGetLinearDispAddr(void)
{
/*
** INTEL_DOS requires the user to call _WRITEXB(), _READXB() when
** using the linear address. Since these calls are internal to the HAL,
** the application cannot use the linear address for INTEL_DOS platforms.
*/
#ifdef INTEL_DOS
return 0;
#else
return _DispLinearAddress;
#endif
}
/*-------------------------------------------------------------------------
//
// seGetLinearRegAddr()
//
//-----------------------------------------------------------------------*/
DWORD seGetLinearRegAddr(void)
{
/*
** INTEL_DOS requires the user to call _WRITEXB(), _READXB() when
** using the linear address. Since these calls are internal to the HAL,
** the application cannot use the linear address for INTEL_DOS platforms.
*/
#ifdef INTEL_DOS
return 0;
#else
return _RegLinearAddress;
#endif
}
/*-----------------------------------------------------------------------*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -