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

📄 csl_intcinit.c

📁 TI的DM6446的硬件平台搭建的相关例子
💻 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_intcInit.c * *  @brief  File for functional layer of CSL API @a CSL_intcInit() * *  Description *  - @a CSL_intcInit() function definition * *  Path: \\(CSLPATH)\\soc\\davinci\\arm9\\src\\intc * *  Modification *  - Modified on: 2004/06/04 (Francis S) *  - Reason: Add Interrupt Entry Table Initialization *          : Added Interrupt Priority Mask support * *  - Modified on: 2004/04/15 *  - Reason: creation * *  Date   2004/04/15 *  Author RG Kiran */#include <csl_intc.h>#include <csl_error.h>#include <csl_types.h>#include <_csl_intc0.h>#include <_csl_intc1.h>#include <csl_sysData.h>#include <_csl_intc.h>/** ============================================================================ *   @n@b CSL_intcInit * *   @b Description *   @n This is the initialization function for the INTC. This function is *      idempotent in that calling it many times is same as calling it once. *      This function initializes the CSL data structures, and doesn't affect *      the H/W. * *   @b Arguments *   @n None * *   <b> Return Value </b>  CSL_Status *   @li                    CSL_SOK - Always returns * *   <b> Pre Condition </b> *   @n  None * *   <b> Post Condition </b> *   @n  None * *   @b Modifies *   @n  None * *   @b Example *   @verbatim         ...         if (CSL_sysInit() == CSL_SOK) {            CSL_intcInit();         }     @endverbatim * ============================================================================= */#pragma CODE_SECTION (CSL_intcInit, ".text:csl_section:intc");CSL_Status CSL_intcInit (    void){    register int i;    CSL_sysDataHandle->intcAllocMask = _CSL_intcAllocMask;    for(i = 0; i < ((CSL_INTC_EVENTID_CNT  + 31) / 32); ++i) {        CSL_sysDataHandle->intcAllocMask[i] = 0;    }    _CSL_intc0Init( );    _CSL_intc1Init( );    return CSL_SOK;}

⌨️ 快捷键说明

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