- include syscalls.h

git-svn-id: http://moon:8086/svn/mips@159 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
2021-04-07 20:50:01 +00:00
parent a0ec266a93
commit cf5d85d972
4 changed files with 15 additions and 3 deletions
+2 -1
View File
@@ -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);
+3 -2
View File
@@ -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();
+1
View File
@@ -10,6 +10,7 @@
#include "../../uart.h"
#include "../../console.h"
#include "../../asm/regdef.h"
#include "../../syscalls.h"
extern uart_if_t uart_if[];
+9
View File
@@ -0,0 +1,9 @@
#ifndef SYSCALLS_H
#define SYSCALLS_H
#include <stdint.h>
void syscalls_init(void);
#endif // SYSCALLS_H