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

📄 csl_sysroutines.h

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