📄 applidata.c
字号:
/* ============================================================================ Project Name : jayaCard Module Name : proto/bios/init/applidata.c Version : $Id: applidata.c,v 1.12 2004/04/24 20:32:34 dgil Exp $ Description: application data 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 012603 dgil wrote it from scratch ============================================================================*/#include "precomp.h"/* ========================================================================= __bios_applidata() This function must fill the AppliData array. __todo : read AppliData[0] from the EEPROM Manufacturer Data ========================================================================= */void __bios_applidata(void){ #ifdef JAYA_PACKAGE_TCL HAL_TCL_INIT_CRC(); AppliData[0] = JAYACFG_AFI_FAMS_X | JAYACFG_AFI_FAMS_Y; HAL_TCL_CRC(AppliData[0]); AppliData[1] = HAL_TCL_LOCRC(); AppliData[2] = HAL_TCL_HICRC(); AppliData[3] = JAYACFG_NUM_APPLICATIONS; #endif HAL_EEPROM_READ(chipUUID,ADDR_CHIP_UUID,8); #ifdef JAYA_PACKAGE_TCL LOG4("BIOS","__bios_applidata() : AppliData[4] = 0x %.2X %.2X %.2X %.2X",AppliData[0],AppliData[1],AppliData[2],AppliData[3]); #endif LOG8("BIOS"," chipUUID[8] = 0x %.2X %.2X %.2X %.2X %.2X %.2X %.2X %.2X",chipUUID[0],chipUUID[1],chipUUID[2],chipUUID[3],chipUUID[4],chipUUID[5],chipUUID[6],chipUUID[7]);}/* ========================================================================= That's all folks ! ========================================================================= */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -