/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * 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<