csl_intchookisr.c

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

C
68
字号
/*  ============================================================================ *   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_intcHookIsr.c * *  @brief  File for functional layer of CSL API @a CSL_intcHookIsr() * *  Description *  - @a CSL_intcHookIsr() function definition * *  Path: \\(CSLPATH)\\soc\\davinci\\arm9\\src\\intc * *  Modification *  - Modified on: 2004/04/15 *  - Reason: creation * *  Date   2004/04/15 *  Author RG Kiran */#include <csl_intc.h>#include <csl_sysData.h>#include <_csl_intc0.h>/** ============================================================================ *  @n@b CSL_intcHookIsr * *  @b Description *  @n Hook up an exception handler *     This API hooks up the handler to the specified exception. *     Note: In this case, it is done by inserting a B(ranch) instruction *     to the handler. Because of the restriction in the instruction *     th handler must be within 32MB of the exception vector. *     Also, the function assumes that the exception vector table is *     located at its default ("low") address. * *  @b Arguments *  @verbatim        vectId       Exception identifier        isrAddr      Pointer to the handler    @endverbatim * *  @b Example: *  @verbatim        CSL_intcHookIsr(CSL_INTC_VECTID_UNDEF, (void *)myUndefExceptionHandler);    @endverbatim * ============================================================================= */#pragma CODE_SECTION (CSL_intcHookIsr, ".text:csl_section:intc");void CSL_intcHookIsr (    CSL_IntcVectId      vectId,    void               *isrAddr){    if (vectId >= CSL_INTC_VECTID_RESET && vectId <= CSL_INTC_VECTID_FIQ) {        _CSL_intc0HookVector((_CSL_Intc0Exception)vectId, isrAddr);    }}

⌨️ 快捷键说明

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