halpower.c

来自「开发源代码的CPU卡的COS源程序。」· C语言 代码 · 共 69 行

C
69
字号
/* ============================================================================   Project Name : jayaCard   Module Name  : proto/hal/<template>/halpower.c   Version : $Id: halpower.c,v 1.5 2004/01/11 09:56:33 dgil Exp $	Description: Manage low power sensor(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_power_level_measure()	This function must return a value :		POWER_UNSUPPORTED		power measure is unsupported by this								component OR is unavailable at the moment 		POWER_INSUFFICIENT		microcontroller has insufficient power ->								some functions can failed		POWER_SUFFICIENT		microcontroller has sufficient power ->								all the functions are normally powered		POWER_TOOMUCH			microcontroller has too much power ->								some functions can failed	This function need to be implemented only if the option 	JAYACFG_POWER_LEVEL_INDICATOR is defined   ========================================================================= */#if defined(JAYACFG_POWER_LEVEL_INDICATOR)jbyte __hal_power_level_measure(void){	// ToBeImplemented	return POWER_SUFFICIENT;}#endif/* =========================================================================	That's all folks !   ========================================================================= */

⌨️ 快捷键说明

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