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

📄 hal_emb.c

📁 epson 13506 driver code
💻 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 + -