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

📄 halinit.c

📁 一个免费的SMART CARD OS系统。
💻 C
字号:
/* ============================================================================   Project Name : jayaCard   Module Name  : proto/hal/avr/halinit.c   Version : $Id: halinit.c,v 1.5 2004/04/24 20:32:34 dgil Exp $	Description: init the specific AVR hardware    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   073103 dgil	wrote it from scratch   ============================================================================*/#include "precomp.h"/* =========================================================================	__hal_init()	called by __bios_init() during the initialisation process. See the file	proto/hal/template/DESIGN for more information.   ========================================================================= */void __hal_init(void){	ACSR = 0x80;	DDRA = 0xFF;	DDRB = 0xFF;	DDRC = 0xFF;	DDRD = 0xFF;	PORTA = 0xFF;	PORTB = 0xFF;	PORTC = 0xFF;	PORTD = 0xFF;	/* __x XXX more to init */	avr_rand = 0;	TIMSK = 0;	/* Disable timer interrupts */	TCNT0 = 0;	/* Set timer 0 value */	TCCR0 = 0;	/* Start timer 0 */}/* =========================================================================	That's all folks !   ========================================================================= */

⌨️ 快捷键说明

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