drv_glob.inc
资源名称:SMDK2440.rar [点击查看]
上传用户:qiulin1960
上传日期:2013-10-16
资源大小:2844k
文件大小:2k
源码类别:
Windows CE
开发平台:
Windows_Unix
- ;++
- ; Copyright (c) 1999-2000 Microsoft Corporation. All rights reserved.
- ;
- ; Module Name:
- ;
- ; drv_glob.inc
- ;
- ; Abstract:
- ; This file provides the ASM definitions for the driver globals area of
- ; shared memory, used to coordinate between ISRs and ISTs.
- ;
- ;
- ; Author:
- ;
- ; Glenn Davis (glennd) 2-12-97
- ;
- ; Environment:
- ;
- ; SH-3 privileged mode.
- ;
- ; Revision History:
- ;
- ;--
- ; Make sure this stays synced with def in drv_glob.h
- DRIVER_GLOBAL_BASE .equ h'ac020000
- ; Touch panel sample area
- ;
- ; Note: It's important that buffer A and B are contiguous in memory and
- ; 16 bytes apart.
- TOUCH_SAMPLE_BASE: .equ DRIVER_GLOBAL_BASE + h'4
- tchBufA: .equ h'0000 ; Sample buffer A
- tchBufB: .equ h'0010 ; Sample buffer B
- tchHalPointer: .equ h'0020 ; HAL's sample pointer
- tchDevDrvPointer: .equ h'0024 ; Device driver's sample pointer
- tchSemaphore: .equ h'0028 ; Touch/Audio sync semaphore
- tchStatus: .equ h'002c ; Status used for passing info from HAL to touch driver
- tchCoordCount: .equ h'0030 ; Coordinate count - used in touch HAL code
- tchTimerState: .equ h'0034 ; Used for the timer handler state machine.
- ; Profile Globals
- PROFILE_BASE: .equ DRIVER_GLOBAL_BASE + h'200
- itIndex: .equ h'0 ; index of timer interrupt
- itCounter: .equ h'4 ; counter at isr start
- itSpc: .equ h'8 ; saved program counter
- ; Misc Globals
- MISC_DRVGLOB_BASE: .equ DRIVER_GLOBAL_BASE + h'300
- offButton .equ h'0 ; Indicates off button event
- ; Debug ethernet globals (placeholder only - currently only referenced in C files)
- DBG_ETH_GLOBALS_BASE .equ DRIVER_GLOBAL_BASE + h'800