有关isr_1_GetState();函数。
FAE说此函数能自动清楚中断标志,可我时钟没有看明白它是怎么自动清楚的。
/*******************************************************************************
* Function Name: isr_1_GetState
********************************************************************************
* Summary:
* Gets the state (enabled, disabled) of the Interrupt.
*
*
* Parameters:
* void.
*
*
* Return:
* 1 if enabled, 0 if disabled.
*
*
*******************************************************************************/
uint8 isr_1_GetState(void)
{
/* Get the state of the general interrupt. */
return (*isr_1_INTC_SET_EN & isr_1__INTC_MASK) ? 1:0;
}
看函数的代码就怎么简单,仅仅只有一个返回值,莫非其内部还有其他的机制能让程序在访问此变量的时候能自动清零?
这个问题也是百思不得其解。
其高人们顺便解释一下。
|