📄 hal4sys.h
字号:
/*
//*************************************************************************
//
// P H I L I P S P R O P R I E T A R Y
//
// COPYRIGHT (c) 2000 BY PHILIPS SINGAPORE.
// -- ALL RIGHTS RESERVED --
//
// Project: ISP1581 EVA board
// File Name: HAL4SYS.H
// Author: Qian Jiang
// Created: Sept. 1, 2000
// Modified:
// Revision: 0.0
//
//*************************************************************************
*/
#ifndef __HAL4SYS_H__
#define __HAL4SYS_H__
#include "BasicTyp.h"
//#include "common.h"
#define ISP1581PCKIT_PORTBASE 0x368
#define dport (ISP1581PCKIT_PORTBASE + 2)
#define aport (ISP1581PCKIT_PORTBASE + 0)
#define ctlport (ISP1581PCKIT_PORTBASE + 4)
#define dmaport (ISP1581PCKIT_PORTBASE + 6)
//#define ISP1581_CTRL_PORT_0 (ISP1581PCKIT_PORTBASE + 3)
//#define ISP1581_CTRL_PORT_1 (ISP1581PCKIT_PORTBASE + 4)
//#define ISP1581_CTRL_PORT_2 (ISP1581PCKIT_PORTBASE + 5)
#define ISP1581_LOCALSRAM_PORT (ISP1581PCKIT_PORTBASE + 6)
#define ISP1581_ERROR_PORT (ISP1581PCKIT_PORTBASE + 8)
#define SCP_LED0 0x01
#define SCP_LED1 0x02
//#define SCP_LED2 0x04
//#define SCP_LED3 0x08
#define SCP_RST 0x40
#define SCP_INTEN 0x80
#define debug_code_dmaburst0 0x1000
#define debug_code_dmaburst1 0x1001
#define debug_code_dmaburst2 0x1002
#define debug_code_dmaburst3 0x1003
#define debug_code_dmaburst4 0x1004
#define debug_code_dmaburst5 0x1005
#define debug_code_dmaburst6 0x1006
#define debug_code_dmaburst7 0x1007
#define debug_code_waitkey 0x2001
#define debug_code_stall 0x1234
#define debug_code_eot 0x1235
#define debug_code_gosuspend 0x2345
#define debug_code_configdma 0x2346
#define debug_code_eot_nz 0x5432
#define debug_code_clearfeature 0xa55a
void Hal4Sys_AcquireFPGA(void);
void Hal4Sys_ReleaseFPGA(void);
void Hal4Sys_ResetPCBA(void);
void Hal4Sys_AcquireTimer0(void);
void Hal4Sys_ReleaseTimer0(void);
void interrupt Hal4Sys_Isr4Timer(void);
void Hal4Sys_AcquireSerial(void);
void Hal4Sys_ReleaseSerial(void);
void Hal4Sys_AcquireKeypad(void);
void Hal4Sys_ReleaseKeypad(void);
void Hal4Sys_AcquireLED(void);
void Hal4Sys_ReleaseLED(void);
void Hal4Sys_AcquireSerial(void);
void Hal4Sys_ReleaseSerial(void);
void Hal4Sys_WaitinUS( IN OUT ULONG time);
void Hal4Sys_WaitinMS( IN OUT ULONG time);
void Hal4Sys_ControlLEDPattern( UCHAR LEDpattern);
UCHAR Hal4Sys_GetFPGAId(void);
void Hal4Sys_ControlISP1581Interrupt( BOOLEAN InterruptEN);
void Hal4Sys_ZeroBuffer(PUCHAR BuffPtr, ULONG length);
void Mask_INT(void);
void Release_INT(void);
void debug_out(unsigned int debug_code);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -