cathyLH
驱动牛犊
驱动牛犊
  • 注册日期2002-04-04
  • 最后登录2004-08-28
  • 粉丝0
  • 关注0
  • 积分20分
  • 威望2点
  • 贡献值0点
  • 好评度2点
  • 原创分0分
  • 专家分0分
阅读:2049回复:0

1394接收中断的问题

楼主#
更多 发布于:2002-04-05 09:42
小妹不才,在作1394接口程序,我的Quadlet,Block Stream packet接收发送都正常,而且我可以看到interrupt event clean register相应的值也对,可是我hook的ISR始终没有相应,那位仁兄可以帮忙解释一下。程序代码如下:
#ifdef __cplusplus
    #define __CPPARGS ...
#else
    #define __CPPARGS
#endif

void interrupt ( *oldhandler)(__CPPARGS);

void interrupt ISR_1394(__CPPARGS)
{
/* increase the global counter */
   count++;

/* call the old routine */
oldhandler();
}

/*************************************************/
/*   5.7.2 ->attach the ISR to the IRQ           */
/*************************************************/
/* save the old interrupt vector */
   oldhandler = _dos_getvect(INT_LINE_NUMBER);

/* install the new interrupt handler */
  _dos_setvect(INT_LINE_NUMBER,ISR_1394);
 
我的E-mail:weifeng.Ge@flashtech.com.sg
游客

返回顶部