📄 csl_intcglobalenable.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_intcGlobalEnable.c * * @brief File for functional layer of CSL API @a CSL_intcGlobalEnable() * * Description * - @a CSL_intcGlobalEnable() 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_error.h>#include <csl_types.h>#include <_csl_intc0.h>/** ============================================================================ * @n@b CSL_intcGlobalEnable * * @b Description * @n Globally enable interrupts. * The API enables the global interrupt by manipulating the processor's * global interrupt enable/disable flag. If the user wishes to restore * the enable-state at a later point, they may store the current state * using the parameter, which could be used with CSL_intcGlobalRestore (). * CSL_intcGlobalEnable () must be called from a privileged mode. * * @b Arguments * @verbatim prevState (Optional) Pointer to object that would store current stateObject that contains information about previous state @endverbatim * * <b> Return Value </b> CSL_Status * @li CSL_SOK on success * * @b Example: * @verbatim CSL_intcGlobalEnable(NULL); @endverbatim * ============================================================================= */#pragma CODE_SECTION (CSL_intcGlobalEnable, ".text:csl_section:intc");CSL_Status CSL_intcGlobalEnable ( CSL_IntcGlobalEnableState *prevState){ CSL_IntcGlobalEnableState en; en = ((CSL_IntcGlobalEnableState)_CSL_intc0EnableFIQ( ) << 1) | (CSL_IntcGlobalEnableState)_CSL_intc0EnableIRQ( ); if (prevState) { *prevState = en; } return CSL_SOK;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -