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

📄 intr.cpp

📁 WinCE5.0BSP for Renesas SH7770
💻 CPP
字号:
//
//  Copyright(C) Renesas Technology Corp. 1998-2004. All rights reserved.
//
//  NCG Display Driver for ITS-DS7
//
//  FILE      : intr.cpp
//  CREATED   : 2003.08.28
//  MODIFIED  : 2004.03.01
//  AUTHOR    : Renesas Technology Corp.
//  HARDWARE  : RENESAS ITS-DS7
//  HISTORY   : 
//              2003.08.28
//              - Created prototype code.
//                (based on Q2SD Display Driver for PFM-DS6C Ver.3.1.0)
//              2004.03.01
//              - Changed the name of variables and functions.
//

#include "precomp.h"

extern HANDLE g_hVBlankExternal;
extern HANDLE g_hBltDoneExternal;

void
StartIntrThread_DU(NCG *pNCG)
{
	pNCG->IntrThreadProc_DU();
}

void
NCG::IntrThreadProc_DU()
{
	unsigned long   status;

	while (TRUE) {

		// wait for kernel to signal the main intr event
		WaitForSingleObject(m_hIntrEvent_DU, INFINITE);

		status = m_pDURegs[DU_DSSR];
		if (status & DSSR_VBK) {	// VBK
			m_pDURegs[DU_DSRCR] = DSRCR_VBCL;
			m_bFlippingPlane[0] = FALSE;
			PulseEvent(m_hVBlank);
			PulseEvent(g_hVBlankExternal);
		}

        // signal to the kernel that interrupt processing has been completed
        InterruptDone(m_dwIntrId_DU);
    }
    
    // disable the interrupt associated with this ID
    InterruptDisable(m_dwIntrId_DU);
}

⌨️ 快捷键说明

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