gfd.c

来自「东芯IVSEP3203F50移动终端应用处理器usb驱动程序」· C语言 代码 · 共 53 行

C
53
字号
/****************************************************************
 *  Copyright (C) Asic Center. 2001
 *  All Rights Reserved
 *
 *  Filename : EPSONC33.h
 *  Function : hardware abstract layer(HAL)
 *  Revision :
 *		2002/4/17	PESSIA	Create this file
 *****************************************************************/

void enable_irq(){
	int tmp;
	__asm{
		mrs tmp, CPSR	
		bic tmp,tmp,#0x80  
		msr CPSR_c,tmp	
		}
	}
	
void disable_irq(){
	int tmp;
	__asm{
		mrs tmp, CPSR	
		orr tmp,tmp,#0x80  
		msr CPSR_c,tmp	
		}
	}
	
void erter_crtical_section(){
	int tmp;
	__asm{
		mrs tmp, CPSR	
		orr tmp,tmp,#0x80  
		msr CPSR_c,tmp	
		}
	}
	
void exit_crtical_section(){
	int tmp;
	__asm{
		mrs tmp, CPSR	
		bic tmp,tmp,#0x80  
		msr CPSR_c,tmp	
		}
	}
	
	
void extend_psr_to_32(void)	{

}


⌨️ 快捷键说明

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