qxwandy
驱动牛犊
驱动牛犊
  • 注册日期2009-07-02
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分8分
  • 威望61点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:2607回复:1

请教WDF中如何设置中断及中断函数啊?

楼主#
更多 发布于:2010-09-09 22:49
          大家好:


请教各位在WDF里如何设置中断9并设置中断函数啊?系统提供的大概的初始化例程如下,但是就是没搞明白如何去响应中断9的例程。因为我的中断是在操作系统下面的设备发上来的,操作系统这是是一个被动设备?


WDF_INTERRUPT_CONFIG_INIT(&interruptConfig,
                              DioIsr,
                              DioDpc);


    interruptConfig.AutomaticSerialization = TRUE;


    interruptConfig.EvtInterruptEnable  = DioEvtInterruptEnable;
    interruptConfig.EvtInterruptDisable = DioEvtInterruptDisable;


    status = WdfInterruptCreate(device,
                                &interruptConfig,
                                &objAttributes,
                                &devContext->WdfInterrupt);
    if (!NT_SUCCESS (status)) {
#if DBG
        DbgPrint("WdfInterruptCreate failed 0x%0x\n", status);
#endif
        return status;
    }

qxwandy
驱动牛犊
驱动牛犊
  • 注册日期2009-07-02
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分8分
  • 威望61点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2010-09-10 18:32
哪位能帮忙指点一下阿?
游客

返回顶部