[Bootloader]
- instantiate uart_ifs in board git-svn-id: http://moon:8086/svn/mips@192 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
@@ -10,9 +10,13 @@
|
|||||||
#include "../../../libsys/irq.h"
|
#include "../../../libsys/irq.h"
|
||||||
#include "../../../libsys/uart.h"
|
#include "../../../libsys/uart.h"
|
||||||
|
|
||||||
#ifdef WITH_DEBUGGER
|
const uart_if_t uart_if[] =
|
||||||
extern uart_if_t uart_if[];
|
{
|
||||||
|
{(uint32_t*)SYS_UART0_STAT, (uint32_t*)SYS_UART0_DATA, (uint32_t*)SYS_UART0_BAUD},
|
||||||
|
{(uint32_t*)SYS_UART1_STAT, (uint32_t*)SYS_UART1_DATA, (uint32_t*)SYS_UART1_BAUD}
|
||||||
|
};
|
||||||
|
|
||||||
|
#ifdef WITH_DEBUGGER
|
||||||
void dbg_putchar(char c)
|
void dbg_putchar(char c)
|
||||||
{
|
{
|
||||||
if (c == 0x0A)
|
if (c == 0x0A)
|
||||||
|
|||||||
@@ -10,7 +10,14 @@
|
|||||||
#include "../../../libsys/irq.h"
|
#include "../../../libsys/irq.h"
|
||||||
#include "../../../libsys/uart.h"
|
#include "../../../libsys/uart.h"
|
||||||
|
|
||||||
extern uart_if_t uart_if[];
|
// ---------------------------------------------------------------------------------
|
||||||
|
// Uart
|
||||||
|
// ---------------------------------------------------------------------------------
|
||||||
|
const uart_if_t uart_if[] =
|
||||||
|
{
|
||||||
|
{(uint32_t*)SYS_UART0_STAT, (uint32_t*)SYS_UART0_DATA, (uint32_t*)SYS_UART0_BAUD},
|
||||||
|
{(uint32_t*)SYS_UART1_STAT, (uint32_t*)SYS_UART1_DATA, (uint32_t*)SYS_UART1_BAUD}
|
||||||
|
};
|
||||||
|
|
||||||
void _dbg_writechar(uart_if_t const *pUart, char c)
|
void _dbg_writechar(uart_if_t const *pUart, char c)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user