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

📄 board_pxa_lubbock_i.h

📁 浙江大学的悟空嵌入式系统模拟器
💻 H
字号:
/*
*  Copyright (c) 2005 Zhejiang University, P.R.China
*
*  This program is free software; you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
*  the Free Software Foundation; either version 2 of the License, or
*  (at your option) any later version.
*
*  This program is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*
*  You should have received a copy of the GNU General Public License
*  along with this program; if not, write to the Free Software
*  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ 

//=============================================================================
/**
*  @file    ARM/Board_EP7312_i.h
*
*  $Id: Board_PXA_Lubbock_i.h,v 1.2 2005/06/16 05:54:51 qilj Exp $
*
*  @author  Lingjie Qi <lingjie_qi@163.com> 
*/
//=============================================================================

inline void Board_PXA_Lubbock::set_signal(Extern_Signal which, bool val)
{
	signal_[which] = val;
}

inline bool Board_PXA_Lubbock::test_signal(Extern_Signal which)
{
	return signal_[which];
}

/*inline void Board_PXA_Lubbock::clear(INT_Reg whick)
{
	int_reg_[whick] = 0;
}*/


inline void Board_PXA_Lubbock::descend_rt_clock()
{
	if (rt_scale >0)
		rt_scale--;
}

inline void Board_PXA_Lubbock::descend_os_clock()
{
	if (os_scale >0)
		os_scale--;
}

inline void Board_PXA_Lubbock::reset_rt_clock()
{
	rt_scale = RT_SCALE;
	//clock = 0xFFFF;
}

inline void Board_PXA_Lubbock::reset_os_clock()
{
	os_scale = OS_SCALE;
}


inline void Board_PXA_Lubbock::descend_io_prescale()
{
	if(io_prescale_ > 0)
		io_prescale_--;
}

inline void Board_PXA_Lubbock::reset_io_prescale()
{
	io_prescale_ = 50;
}

inline bool Board_PXA_Lubbock::test_io_prescale()
{
	return (io_prescale_ == 0);
}


inline Core::u32 & Board_PXA_Lubbock::get_ICIP()
{
	return ic_reg_[ICIP];
}

inline Core::u32 & Board_PXA_Lubbock::get_ICPR()
{
	return ic_reg_[ICPR];
}

⌨️ 快捷键说明

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