Enable_Interrupt(INT_KBI0);
void Enable_Interrupt(UINT8 vector_number)
{
vector_number= vector_number-16;
/* Set the ICPR and ISER registers accordingly */
NVIC_ICPR |= 1 << (vector_number%32);
NVIC_ISER |= 1 << (vector_number%32);
}
是否能解释下上面函数的功能,还有这2个寄存器(NVIC_ICPR,NVIC_ISER )的资料没有找到 |