|
本帖最后由 lxvtag 于 2012-5-2 22:54 编辑
以下是interrupt_drv.c全文:
/*****************************************************************************
** The C file for MG8F08A Microprocessors **
** **
** Copyright(C) 2012, Green Tec. **
** All rights reserved. **
*****************************************************************************
** filename : interrupt_drv.c **
** version : v1.0 **
** created by : sean **
** date : 2012-3-11 **
** used for mg8f08a **
******************************************************************************/
//#include "interrupt_drv.h"
#include "mcu_def.h"
#include "iomg8f164v.h"
#include "macros.h"
/*****************************************************************************
** Function name : Ex_Interrupt_set
** Descriptions :
** parameters : mode:
** Returned value : None
*****************************************************************************/
//void Ex_Interrupt_set(u8 int_unmb,u8 int_mode)
//{
//}
SIGNAL(SIG_INTERRUPT0)
{
PCIFR |= 0x40; //clear flag
//return 1;
}
/******************************************************************************
******************* End Of File *******************
*******************************************************************************/
可以看到Ex_Interrupt_set整个函数都没有内容而且被注释掉了,
还有个疑问,手册71页里说PCIFR寄存器bit7-4是保留位
为何这个中断函数里却对它操作:
SIGNAL(SIG_INTERRUPT0)
{
PCIFR |= 0x40; //clear flag
//return 1;
}
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|