home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Phoenix Heaven Sunny 2
/
APPARE2.BIN
/
oh_towns
/
his
/
source
/
his.h
next >
Wrap
C/C++ Source or Header
|
1995-06-20
|
2KB
|
42 lines
/***********************************************************************
* *
* ハードウェア割り込み支援ライブラリ *
* *
* 1995.6.12 by ちょもらんま *
* *
***********************************************************************/
/*************************** 関数戻り値の定義 **************************/
#define HIS_NoError 0 /* 正常終了 */
#define HIS_OtherHandler 1 /* すでに他のハンドラが登録されているが、 */
/* 新規のハンドラが稼働する。 */
#define HIS_IllegalIntNumber 2 /* 割り込み番号が不正である。 */
#define HIS_OutofMemory 3 /* メモリー不足 */
#define HIS_NoHandler 4 /* 登録されている割り込みハンドラはない。 */
#define HIS_UnexpectedSize 5 /* 変数のサイズが予想と異なる */
/* IMR 記録用定数 */
#define HIS_intMasked 1
#define HIS_intUnmasked 0
/***********************************************************************/
/* ライブラリ関数群 */
/***********************************************************************/
int HIS_checkIntNumber ( int intnum );
void HIS_enableInterrupt ( int intnum );
void HIS_disableInterrupt( int intnum );
int HIS_checkMask ( int intnum );
int HIS_setHandler ( int intnum , void (*handler)() );
int HIS_detachHandler ( int intnum );
char *HIS_stackArea ( char *stack , int stacksize );
int HIS_readIMR ( void );
void HIS_writeIMR ( int value );
unsigned short HIS_getCS ( void );
unsigned short HIS_getDS ( void );
#define HIS_disableAllInt() _inline( 0xfa )
#define HIS_enableAllInt() _inline( 0xfb )