- startup calls board_init
git-svn-id: http://moon:8086/svn/mips@71 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
@@ -9,37 +9,6 @@
|
||||
#include "libsys.h"
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------------------
|
||||
// Types
|
||||
// ---------------------------------------------------------------------------------
|
||||
void libsys_init(void)
|
||||
{
|
||||
uint32_t volatile *pITIM_ctrl = (uint32_t*)SYS_ITIM_CTRL;
|
||||
|
||||
// Screen_clr();
|
||||
|
||||
// Disable timers
|
||||
*pITIM_ctrl = 0;
|
||||
|
||||
// Disable all VGA stuff
|
||||
// *pVGA_ctrl = 0;
|
||||
|
||||
// Initialzie syscall support
|
||||
syscalls_init();
|
||||
|
||||
// Initialzie interrupt support
|
||||
interrupt_init();
|
||||
|
||||
// Initalize debugger
|
||||
dbg_init();
|
||||
|
||||
// flush stdin
|
||||
// flush(con_getPort(0));
|
||||
|
||||
// Do some initializations here
|
||||
|
||||
}
|
||||
|
||||
#define CALC_BAUD(b) \
|
||||
((uint32_t)((float)CPU_FREQ_HZ/(16*b) + 0.5f) - 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user