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

📄 mk_hisr.h

📁 samsung 9908DVD源代码,
💻 H
字号:
/**********************************************************************************
 * mk_hisr.h                                                                         
 * coded by khyoon
 * date : 2003/07/18
 **********************************************************************************/

#ifndef __MK_HISR_H__
#define __MK_HISR_H__

#define		MK_HISR_MAGIC			0xF4CD03E2L		/* Magic Value of Task */
#define		MK_HISR_MIN_PRIORITY	0
#define		MK_HISR_MAX_PRIORITY	2

typedef void (*MK_HISR_FUNC_T)(void);

#pragma packed on	
typedef struct mk_hisr_struct {
	ULONG	t_Magic;						/* Magic Value of Task Control Block */
	ULONG	t_CurrentOfStack;				/* Current Pointer of Stack */
	ULONG	t_TopOfStack;					/* Top Pointer of Stack */
	ULONG	t_BottomOfStack;				/* Bottom Pointer of Stack */
	ULONG	t_PreviousCurrentOfStack;		/* Used in Signal */
	ULONG	t_LengthofStackArea;			/* Length of Reserved Stack Area */
	ULONG	reserved1;						/* not used */
	ULONG	t_Priority;						/* Priority of Task */
	MK_HISR_FUNC_T	t_Function;				/* Fucntion for Task */
	ULONG	reserved2[4];					/* not used */
	ULONG	t_ActivateCount;				/* active count */
	VOID	*reserved3;						/* not used */
	CHAR	*t_pName;			/* Task's Name */
	//CHAR	t_pName[MK_NAME_MAX];			/* Task's Name */

	ULONG	reserved4;
	ULONG	reserved5;
#ifdef	_MK_TPORT
	ULONG	reserved6[3];
#endif
#ifdef	_MK_SIGNAL
	ULONG	reserved7[2];
	ULONG	reserved8;
#endif
#ifdef	_MK_EVENT
	ULONG	reserved9[/*3*/2];
	ULONG	reserved10;
#endif

	struct mk_hisr_struct *t_pHISRNext;
	struct mk_hisr_struct *t_pHISRPrev;
	struct mk_hisr_struct *t_pHISRActiveNext;
	struct mk_hisr_struct *t_pHISRActivePrev;
	
	ULONG	*reserved11[4];					/* not used */
} MK_HISR;
#pragma packed off

extern MK_HISR *MK_pActiveHISRListHead[MK_HISR_MAX_PRIORITY+1];
extern MK_HISR *MK_pActiveHISRListTail[MK_HISR_MAX_PRIORITY+1];
extern MK_HISR	*MK_pHISRListHead, *MK_pHISRListTail;

/*--------------------------------------------------------------------
 *	Internal Function
 *--------------------------------------------------------------------*/
VOID MK_HISRInitialize(VOID);
VOID MK_HISRShell(VOID);

/*--------------------------------------------------------------------
 *	API Function
 *--------------------------------------------------------------------*/
MK_HISR *MK_CreateHISR(MK_HISR *pHisr, CHAR *name, MK_HISR_FUNC_T function, INT Priority,
						CHAR *StackPtr, INT StackLength);
VOID MK_ActivateHISR(MK_HISR *pHisr);
VOID MK_DeleteHISR(MK_HISR *pHisr);
MK_HISR *MK_GetCurrentHISR(VOID);

#endif /* __MK_HISR_H__ */

⌨️ 快捷键说明

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