- startup calls board_init

git-svn-id: http://moon:8086/svn/mips@71 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
2017-01-11 07:55:49 +00:00
parent 0a6546c6c4
commit bba98f5677
4 changed files with 54 additions and 34 deletions
+21
View File
@@ -6,6 +6,8 @@
#include <stddef.h>
#include "board.h"
#include "../../uart.h"
#include "../../console.h"
@@ -23,3 +25,22 @@ con_if_t con_if =
{
con_if_entry, ARRAYSIZE(con_if_entry)
};
void board_init(void)
{
uint32_t volatile *pITIM_ctrl = (uint32_t*)SYS_ITIM_CTRL;
// Disable timers
*pITIM_ctrl = 0;
// Initialzie syscall support
syscalls_init();
// Initialzie interrupt support
interrupt_init();
// Initalize debugger
dbg_init();
// Do some initializations here
}