[nios-ii] auto formatted
This commit is contained in:
parent
c3ffe18688
commit
d19ee8ebcd
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* File : application.c
|
||||
* This file is part of RT-Thread RTOS
|
||||
* COPYRIGHT (C) 2006-2011, RT-Thread Development Team
|
||||
* COPYRIGHT (C) 2006-2021, RT-Thread Development Team
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* File : board.c
|
||||
* This file is part of RT-Thread RTOS
|
||||
* COPYRIGHT (C) 2006-2011, RT-Thread Development Team
|
||||
* COPYRIGHT (C) 2006-2021, RT-Thread Development Team
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* File : board.h
|
||||
* This file is part of RT-Thread RTOS
|
||||
* COPYRIGHT (C) 2006-2011, RT-Thread Development Team
|
||||
* COPYRIGHT (C) 2006-2021, RT-Thread Development Team
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* File : startup.c
|
||||
* This file is part of RT-Thread RTOS
|
||||
* COPYRIGHT (C) 2006-2011, RT-Thread Development Team
|
||||
* COPYRIGHT (C) 2006-2021, RT-Thread Development Team
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
|
|
|
@ -32,7 +32,7 @@ static rt_err_t rt_uart_init (rt_device_t dev)
|
|||
{
|
||||
set_baudrate(115200);
|
||||
|
||||
IOWR_ALTERA_AVALON_UART_CONTROL(RS232_BASE, 0x80);//接收中断使能
|
||||
IOWR_ALTERA_AVALON_UART_CONTROL(RS232_BASE, 0x80);//接收中断使能
|
||||
IOWR_ALTERA_AVALON_UART_STATUS(RS232_BASE, 0x0); // clean status
|
||||
|
||||
rx_put_index = 0;
|
||||
|
@ -99,7 +99,7 @@ void rt_hw_uart_init(void)
|
|||
{
|
||||
// init uart
|
||||
set_baudrate(115200);
|
||||
IOWR_ALTERA_AVALON_UART_CONTROL(RS232_BASE, 0x80);//接收中断使能
|
||||
IOWR_ALTERA_AVALON_UART_CONTROL(RS232_BASE, 0x80);//接收中断使能
|
||||
IOWR_ALTERA_AVALON_UART_STATUS(RS232_BASE, 0x0); // clean status
|
||||
alt_irq_register(RS232_IRQ, NULL, uart_isr);
|
||||
|
||||
|
|
Loading…
Reference in New Issue