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

📄 isr.h

📁 isp1160_isa_evel_codeUSB主机软件
💻 H
字号:
/*
**  Kenobi2          version 1.3
**
**      ** This code has been made to check/learn the 1161 functionalities ** 
**      ** Release 25-Feb-2002                                             **
**
**      OKANO, Akifumi 
**      
**		Computing Segment, Semisonductors Div, Philips Japan Ltd.
**      akifumi.okano@philips.com
**      +81-3-3740-4668 
*/

#ifndef _ISR_H
#define _ISR_H



/*	ISR and utility routines  */


#define		HcuInterrupt_SOFITInt			0x01
#define		HcuInterrupt_ATLInt				0x02
#define		HcuInterrupt_AllEOTInterrupt	0x04
#define		HcuInterrupt_OPR_Reg			0x10
#define		HcuInterrupt_HCSuspend			0x20
#define		HcuInterrupt_ClkReady			0x40

#define		HcInterruptStatus_SO			0x01
#define		HcInterruptStatus_SF			0x04
#define		HcInterruptStatus_RD			0x08
#define		HcInterruptStatus_UE			0x10
#define		HcInterruptStatus_FNO			0x20
#define		HcInterruptStatus_RHSC			0x40
#define		HcInterruptStatus_ATD			0x80



/*
**		bit position definitions for "g_isr_flag"	
*/

#define		SOFITInt			HcuInterrupt_SOFITInt
#define		ATLInt				HcuInterrupt_ATLInt
#define		AllEOTInterrupt		HcuInterrupt_AllEOTInterrupt
#define		OPR_Reg				HcuInterrupt_OPR_Reg
#define		HCSuspend			HcuInterrupt_HCSuspend
#define		ClkReady			HcuInterrupt_ClkReady
#define		SO					HcInterruptStatus_SO << 8
#define		SF					HcInterruptStatus_SF << 8
#define		RD					HcInterruptStatus_RD << 8
#define		UE					HcInterruptStatus_UE << 8
#define		FNO					HcInterruptStatus_FNO << 8
#define		RHSC				HcInterruptStatus_RHSC << 8
#define		ATD					HcInterruptStatus_ATD << 8

#define		MAXMUM_NUMBER_OF_SOF_SERVICE_ROUTINE_METHOD		2
#define		SOF_SERVICE_ROUTINE_INITIALIZE					{ NULL, NULL }


extern unsigned long	g_sof_counter;
extern unsigned long	g_operation_time;

extern unsigned short	g_isr_flag;
extern unsigned short	rhsc_event_counter;
extern unsigned short	g_event_counter;

extern unsigned short	hardware_configuration_setting;


typedef			void interrupt		(* isrPtr)();
typedef			void 				(* funcPtr)();

void interrupt	isr_USB_Hc( void );
isrPtr			install_isr( int irq_num, isrPtr new_vector );
void			restore_isr(  int irq_num, isrPtr old_vector );
funcPtr			install_SOF_service_routine( unsigned char number, funcPtr function_ptr );

unsigned short	disable_Hc( void );
void			enable_Hc( void );

#endif

⌨️ 快捷键说明

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