csl_sysroutines.h
来自「TI达芬奇dm644x各硬件模块测试代码」· C头文件 代码 · 共 28 行
H
28 行
/* ============================================================================
* 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.
* ===========================================================================
*/
#ifndef _CSL_SYSROUTINES_H
#define _CSL_SYSROUTINES_H
#include <cslr_chip.h>
inline Uint32 CSL_sysGlobalInterruptDisable()
{
extern cregister volatile unsigned int TSR;
asm(" DINT");
return (TSR & 0x00000002);
}
inline void CSL_sysGlobalInterruptRestore(Uint32 restoreVal)
{
extern cregister volatile unsigned int TSR;
TSR |= restoreVal;
asm(" RINT");
}
#endif /*_CSL_SYSROUTINES_H*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?