hello_led_0
所属分类:嵌入式/单片机/硬件编程
开发工具:Others
文件大小:194KB
下载次数:122
上传日期:2008-05-05 19:11:06
上 传 者:
hqulyj2008
说明: SD卡的SD模式的读写驱动,PIO口控制,代码速度相对较慢,再NIOS2环境下开发
(SD card reader SD model-driven, PIO population control, code relatively slow, and then the development environment NIOS2)
文件列表:
hello_led_0\.cdtbuild (2492, 2005-06-29)
hello_led_0\.cdtproject (586, 2005-06-29)
hello_led_0\.project (623, 2005-06-28)
hello_led_0\application.stf (134, 2008-03-04)
hello_led_0\basic_io.h (1054, 2005-07-21)
hello_led_0\DM9000A.C (9124, 2005-07-22)
hello_led_0\DM9000A.H (3606, 2005-07-22)
hello_led_0\hello_led.c (1024, 2008-03-12)
hello_led_0\LCD.c (1305, 2005-09-15)
hello_led_0\LCD.h (610, 2005-07-17)
hello_led_0\nios2-gdb-server.exe.stackdump (1085, 2008-03-08)
hello_led_0\Open_I2C.c (2461, 2005-07-19)
hello_led_0\Open_I2C.h (2020, 2005-07-19)
hello_led_0\Release (0, 2008-03-12)
hello_led_0\SD.IAB (40960, 2007-12-19)
hello_led_0\SD.IAD (728, 2007-12-19)
hello_led_0\SD.IMB (12288, 2007-12-19)
hello_led_0\SD.IMD (448, 2007-12-19)
hello_led_0\SD.PFI (52, 2007-12-23)
hello_led_0\SD.PO (776, 2007-12-23)
hello_led_0\SD.PR (66048, 2007-12-19)
hello_led_0\SD.PRI (66048, 2007-12-19)
hello_led_0\SD.PS (112312, 2007-12-19)
hello_led_0\SD.SearchResults (100, 2007-12-23)
hello_led_0\SD.WK3 (13357, 2007-12-23)
hello_led_0\SD_Card.h (22172, 2008-03-12)
hello_led_0\Test.c (1773, 2005-07-21)
hello_led_0\Test.h (480, 2005-07-21)
hello_led_0 (0, 2008-03-12)
/**************************************************************************
* Copyright 2004 Altera Corporation, San Jose, California, USA. *
* All rights reserved. All use of this software and documentation is *
* subject to the License Agreement located at the end of this file below.*
*************************************************************************/
/******************************************************************************
* DANGER ** WARNING ** Please read before proceeding! ** WARNING ** DANGER *
******************************************************************************
*
* This program is an example of a "free-standing" C application. If you
* modify this example and try to call C library functions such as printf, they
* will NOT work unless you explicitly initialize the system, such as in the
* hello_alt_main software template. Please see below for details.
*
* Description
* *************
* A very minimal program that simply shifts an LED back and forth.
*
* Requirements
* **************
* According to the ANSI C standard, freestanding programs "own" the hardware,
* and cannot rely on system-services or device-drivers being initialized prior
* to program-start. A freestanding program is responsible for initializing all
* hardware devices, device-drivers, and system-services. Many embedded
* programs are, by nature, freestanding. The author relinquishes any illusion
* of running their program on a workstation.
*
* This example is a freestanding program because it's entry point is the
* function:
*
* void alt_main (void)
*
* As opposed to "main()" as a "hosted" application would (see the
* "hello_world" example).
*
* Upon entry to alt_main():
* - The CPU's caches (if any) have been initialized.
* - The stack-pointer has been set.
* - That's all. The rest is up to you.
*
* If you modify this example and try to call C library functions such as
* printf, they will NOT work unless you explicitly initialize the system.
* If you wish to use C library calls, it is strongly suggested you start
* with the hosted hello_world template which uses main() as it's entry
* point.
*
* On the other hand, if you want to write a program that gets-in even
* earlier, you will need to provide your own assembly-language machine-setup
* code by defining the symbol "_start". Any definition of _start in your
* directory will override the library definition. You can find source code
* for the Nios II library _start here:
*
* /components/altera_nios2/HAL/src/crt0.S
*
* This software example requires a system with a PIO peripheral named
* "led_pio". The software example will run on the following hardware
* examples:
*
* Nios Development Board, Stratix II Edition:
* - Standard
* - Small
* - Full Featured
*
* DSP Development Board, Stratix II Edition:
* - Standard
* - Small
* - Full Featured
*
* Nios Development Board, Stratix Edition:
* - Standard
* - Small
* - Full Featured
*
* Nios Development Board, Stratix Professional Edition:
* - Standard
* - Small
* - Full Featured
*
* Nios Development Board, Cyclone Edition:
* - Standard
* - Small
* - Low Cost
* - Full Featured
*
* Peripherals Exercised by SW
* *****************************
* The hello_led.c program simply shifts an 8-bit variable back and forth,
* writing the variable's value to the system's LED PIO peripheral on every
* iteration.
*
* Software Files
* ****************
* hello_led.c - Main C file that contains the simple led manipulation routine.
*
*/
近期下载者:
相关文件:
收藏者: