_csl_intcdispatchirq.c

来自「TI达芬奇dm644x各硬件模块测试代码」· C语言 代码 · 共 57 行

C
57
字号
/*  ============================================================================ *   Copyright (c) Texas Instruments Inc 2002, 2003, 2004, 2005 * *   Use of this software is controlled by the terms and conditions found in the *   license agreement under which this software has been supplied. *   =========================================================================== *//** *  @file  _csl_intcDispatchIRQ.c * *  @brief  INTC Functional Layer: _CSL_intcDispatchIRQ(..) * *  Description *  - _CSL_intcDispatchIRQ(..) function definition * *  Modification *  - Modified on: 2004/06/12 *  - Reason: creation * *  @date   2004/06/12 * *  @author Francis S * */#include <csl_intc.h>#include <csl_sysData.h>#include <_csl_intc0.h>#include <_csl_intc1.h>#include <_csl_intc.h>#pragma CODE_SECTION (_CSL_intcDispatchIRQ, ".text");interruptvoid    _CSL_intcDispatchIRQ (        void){    CSL_IntcEventHandlerRecord *irqHandlerRecord;    irqHandlerRecord = (CSL_IntcEventHandlerRecord *)_CSL_intc1GetIRQEntry( );    if (irqHandlerRecord == CSL_sysDataHandle->intcEventHandlerRecord) {        return; /* spurious interrupt */    }    if (irqHandlerRecord->handler != _CSL_INTC_EVTHANDLER_UNPLUGGED) {        (*irqHandlerRecord->handler)(irqHandlerRecord->arg);    }    _CSL_intc1AckIRQ(irqHandlerRecord->evtId - _CSL_INTC_EVENTID__INTC1START);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?