⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 csl_intchookisr.c

📁 TI达芬奇dm644x各硬件模块测试代码
💻 C
字号:
/*  ============================================================================ *   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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -