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

📄 board_at91ev40_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/BBoard_AT91EV40_i.h
 *
 *  $Id: Board_AT91EV40_i.h,v 1.1 2005/06/08 07:40:49 qilj Exp $
 *
 *  @author zhao jun <junzhao_china@yahoo.com.cn>
 */
//=============================================================================

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

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

inline Core::u32 & Board_AT91EV40::get_aic_reg(AIC_Reg which)
{
	return aic_reg_[which];
}

inline void Board_AT91EV40::clear(AIC_Reg whick)
{
	aic_reg_[whick] = 0;
}

inline void Board_AT91EV40::clear_clock()
{
	clock = 0;
}

inline void Board_AT91EV40::descend_clock()
{
	if(clock>0)
		clock--;
}

inline bool Board_AT91EV40::test_clock()
{
	return (clock==0);
}

inline void Board_AT91EV40::reset_clock()
{
	clock = 0xFFF;
}

inline Core::u32  Board_AT91EV40::get_clock()
{
	return clock;
}

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

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

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

⌨️ 快捷键说明

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