- include syscalls.h
git-svn-id: http://moon:8086/svn/mips@159 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "../../uart.h"
|
||||
#include "../../console.h"
|
||||
#include "../../asm/regdef.h"
|
||||
#include "../../syscalls.h"
|
||||
|
||||
extern uart_if_t uart_if[];
|
||||
|
||||
@@ -67,7 +68,7 @@ void dbg_uart_isr(struct xcptcontext *xcp)
|
||||
|
||||
void dbg_uart_setup()
|
||||
{
|
||||
const int UART_INT = SYS_INT_UART1;
|
||||
const#include "../../syscalls.h" int UART_INT = SYS_INT_UART1;
|
||||
*uart_if[UART_DEBUGGER].pCTRL = SYS_UART_BIT_RX_INTEN;
|
||||
interrupt_register(UART_INT, dbg_uart_isr);
|
||||
interrupt_enable(UART_INT);
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "../../uart.h"
|
||||
#include "../../console.h"
|
||||
#include "../../asm/regdef.h"
|
||||
#include "../../syscalls.h"
|
||||
|
||||
extern uart_if_t uart_if[];
|
||||
#ifdef WITH_ROM_DEBUGGER
|
||||
@@ -97,10 +98,10 @@ void board_init(void)
|
||||
syscalls_init();
|
||||
|
||||
// Setup Uart ISR
|
||||
dbg_uart_setup();
|
||||
// dbg_uart_setup();
|
||||
|
||||
// Setup debugger
|
||||
dbg_init();
|
||||
// dbg_init();
|
||||
|
||||
// Setup interrupt support
|
||||
interrupt_init();
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "../../uart.h"
|
||||
#include "../../console.h"
|
||||
#include "../../asm/regdef.h"
|
||||
#include "../../syscalls.h"
|
||||
|
||||
extern uart_if_t uart_if[];
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
#ifndef SYSCALLS_H
|
||||
#define SYSCALLS_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
void syscalls_init(void);
|
||||
|
||||
#endif // SYSCALLS_H
|
||||
|
||||
Reference in New Issue
Block a user