/* * File : application.c * This file is part of RT-Thread RTOS * COPYRIGHT (C) 2006-2011, RT-Thread Development Team * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rt-thread.org/license/LICENSE * * Change Logs: * Date Author Notes * 2011-02-14 aozima first implementation for Nios II. * 2011-03-04 aozima add led. */ #include #include "board.h" /** * @addtogroup NIOS_II */ /*@{*/ #include "system.h" #include "altera_avalon_pio_regs.h" // trun on led n #define rt_hw_led_on(n) IOWR_ALTERA_AVALON_PIO_DATA(\ LED_BASE,\ IORD_ALTERA_AVALON_PIO_DATA(LED_BASE) | 1<