- added timer and error macros
Committed on the Free edition of March Hare Software CVSNT Server. Upgrade to CVS Suite for more features and support: http://march-hare.com/cvsnt/ git-svn-id: http://moon:8086/svn/vhdl/trunk@460 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
@@ -17,6 +17,10 @@
|
||||
#define FLOAT32 float
|
||||
#define FLOAT64 double
|
||||
|
||||
#define LSYS_SUCCESS 0
|
||||
#define LSYS_ERR_BASE 0x80000000
|
||||
|
||||
#define IS_ERROR(e) ((e & LSYS_ERR_BASE) == LSYS_ERR_BASE)
|
||||
|
||||
#define sys_gpio0 0xA0000000
|
||||
#define sys_gpio1 0xA0000004
|
||||
@@ -24,10 +28,18 @@
|
||||
#define sys_usb_ctrl sys_gpio1
|
||||
#define sys_timer_usec 0xA0000008
|
||||
#define sys_timer_sec 0xA000000C
|
||||
#define sys_itim_ctrl 0xA0000010
|
||||
#define sys_itim_stat 0xA0000014
|
||||
#define sys_itim_cnt 0xA0000018
|
||||
#define sys_itim_cmp 0xA000001C
|
||||
|
||||
#define sys_itim_ctrl 0xA0000018
|
||||
#define sys_itim_stat 0xA000001C
|
||||
#define sys_itim0_cnt 0xA0000020
|
||||
#define sys_itim1_cnt 0xA0000024
|
||||
#define sys_itim2_cnt 0xA0000028
|
||||
#define sys_itim3_cnt 0xA000002C
|
||||
#define sys_itim0_cmp 0xA0000030
|
||||
#define sys_itim1_cmp 0xA0000034
|
||||
#define sys_itim2_cmp 0xA0000038
|
||||
#define sys_itim3_cmp 0xA000003C
|
||||
|
||||
#define sys_uart_data 0xA0010000
|
||||
#define sys_uart_stat 0xA0010004
|
||||
#define sys_uart_baud 0xA0010008
|
||||
@@ -40,6 +52,7 @@
|
||||
#define sys_vga_posy 0xA0030010
|
||||
#define sys_vga_clrscr 0xA0030020
|
||||
#define sys_vga_clrline 0xA0030040
|
||||
#define sys_vga_cgcol 0xA0030080
|
||||
#define sys_vga_mctrl 0xA0030100
|
||||
#define sys_vga_moffs 0xA0030200
|
||||
#define sys_ac97_stat 0xA0040000
|
||||
|
||||
Reference in New Issue
Block a user