欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

標題: lpc2103 定義空函數的問題 [打印本頁]

作者: 51黑tt    時間: 2016-3-6 13:23
標題: lpc2103 定義空函數的問題
#pragma vector=IRQV
__irq __arm void gh ( )
{
void (*interrupt_function)();

  interrupt_function = (void(*)())VICVectAddr;
    interrupt_function();   
}
這個是中斷服務程序,請問其中的void (*interrupt_function)();是什么意思?



最佳答案

void(*interrupt_function)()定義一函數指針,指向一無參數,無返回值的函數.
interrupt_function=(void(*)())VICVectAddr.此處將VICVectAddr進行強制類型轉換后賦給interrupt_function.

interrupt_function();//調用此函數.






歡迎光臨 (http://www.raoushi.com/bbs/) Powered by Discuz! X3.1