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

📄 halclock.c

📁 一个免费的SMART CARD OS系统。
💻 C
字号:
/* ============================================================================   Project Name : jayaCard   Module Name  : proto/hal/<template>/halclock.c   Version : $Id: halclock.c,v 1.6 2004/01/11 09:56:33 dgil Exp $	Description: Manage CPU clock(s)    The Original Code is jayaCard code.    The Initial Developer of the Original Code is Gilles Dumortier.    Portions created by the Initial Developer are Copyright (C) 2002-2004 the    Initial Developer. All Rights Reserved.    Contributor(s):    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; see http://www.gnu.org/licenses/gpl.html   History Rev	Description   011903 dgil	wrote it from scratch   ============================================================================*/#include "precomp.h"/* =========================================================================	__hal_internal_clock()	Select the internal clocking.	Porting notes:	Think about readjusting the power if needed.   ========================================================================= */void __hal_internal_clock(){	// ToBeImplemented}/* =========================================================================	__hal_external_clock()	Select the internal clocking.	Porting notes:	Given if_type = { IF_TYPE_CONTACTLESS, IF_TYPE_CONTACT }, be sure to	select the right clock settings !	Think about readjusting the power if needed.   ========================================================================= */void __hal_external_clock(){	if (if_type==IF_TYPE_CONTACTLESS) {		/* ToBeImplemented - external clock on RF 13,56 Mhz */	} else {		/* ToBeImplemented - external clock on contact 1 to 8 Mhz */	}}/* =========================================================================	__hal_boost()	Because of very strict timing during the anticollision procedure, some	microcontrollers need to use a very low clock frequency at startup. Then	right after the anticollision occured, these kind of cpu can be boosted.	This function needed to be implemented only if you defined option 	JAYACFG_CPU_BOOST   ========================================================================= */#if defined(JAYACFG_CPU_BOOST)void __hal_boost(void){	// ToBeImplemented}#endif/* =========================================================================	That's all folks !   ========================================================================= */

⌨️ 快捷键说明

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