- fixed bootloader
- bootloader added board file - refactored header files - constify constants git-svn-id: http://moon:8086/svn/mips@99 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
@@ -6,6 +6,9 @@
|
||||
|
||||
#include <stddef.h>
|
||||
#include "board.h"
|
||||
#include "../../irq.h"
|
||||
#include "../../uart.h"
|
||||
#include "../../console.h"
|
||||
#include "../../regdef.h"
|
||||
|
||||
#define DEBUGGER gdb_stub
|
||||
@@ -23,7 +26,7 @@ const con_if_entry_t con_if_entry[] =
|
||||
{4, "UART-1", &uart_if[1], NULL, NULL, UART_readchar, UART_writechar}
|
||||
};
|
||||
|
||||
con_if_t con_if =
|
||||
const con_if_t con_if =
|
||||
{
|
||||
con_if_entry, ARRAYSIZE(con_if_entry)
|
||||
};
|
||||
|
||||
@@ -14,10 +14,6 @@
|
||||
#ifndef BOARD_H
|
||||
#define BOARD_H
|
||||
|
||||
#include "../../irq.h"
|
||||
#include "../../uart.h"
|
||||
#include "../../console.h"
|
||||
|
||||
#define CPU_FREQ_HZ 50000000
|
||||
|
||||
// ---------------------------------------------------------
|
||||
@@ -61,6 +57,12 @@
|
||||
#define GPIO_0_MASK_LED 0x000000FF
|
||||
#define GPIO_0_ALIGN_LED 0
|
||||
|
||||
#define GPIO_0_MASK_DIP 0x000000FF
|
||||
#define GPIO_0_ALIGN_DIP 16
|
||||
|
||||
#define GPIO_0_MASK_BTN 0x0000001F
|
||||
#define GPIO_0_ALIGN_BTN 24
|
||||
|
||||
// RTC
|
||||
#define SYS_TIMER_USEC (SYS_IO_BASE + 0x8)
|
||||
#define SYS_TIMER_SEC (SYS_IO_BASE + 0xC)
|
||||
|
||||
Reference in New Issue
Block a user