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

📄 hal_emb.c

📁 epson公司的一个关于s1d13706的低层驱动程序
💻 C
字号:
/*-------------------------------------------------------------------------
//
// File: hal_emb.c
// generic hal hardware interface routines for embedded targets
//
// Copyright (c) 2000, 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: 5 $";

/*-----------------------------------------------------------------------*/

volatile DWORD _RegLinearAddress;
volatile DWORD _DispLinearAddress;

/*-------------------------------------------------------------------------
//
// _InitPlat()
// 
//-----------------------------------------------------------------------*/

int _InitPlat(void)
   {
   _RegLinearAddress = 0;
   _DispLinearAddress = 0;

   return ERR_OK;
   }

/*-------------------------------------------------------------------------
//
// seGetLinearDisplayAddress()
//
//-----------------------------------------------------------------------*/

DWORD seGetLinearDisplayAddress(void)
   {
   /*
   ** If LINEAR_ADDRESSES_SUPPORTED is not available, then the user must
   ** call _WRITEXB(), _READXB() when using the linear address.
   */
#ifdef LINEAR_ADDRESSES_SUPPORTED
   return _DispLinearAddress;
#else
   return 0;
#endif
   }

/*-------------------------------------------------------------------------
//
// seGetLinearRegAddress()
//
//-----------------------------------------------------------------------*/

DWORD seGetLinearRegAddress(void)
   {
   /*
   ** If LINEAR_ADDRESSES_SUPPORTED is not available, then the user must
   ** call _WRITEXB(), _READXB() when using the linear address.
   */
#ifdef LINEAR_ADDRESSES_SUPPORTED
   return _RegLinearAddress;
#else
   return 0;
#endif
   }

/*-----------------------------------------------------------------------*/


⌨️ 快捷键说明

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