Add sources
This commit is contained in:
17
source/io_reg.h
Normal file
17
source/io_reg.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef _IO_REG_H_
|
||||
#define _IO_REG_H_
|
||||
|
||||
#define IO_REG_BASE 0x1000000
|
||||
|
||||
/* -- Register 'CTRL' -- */
|
||||
#define IO_REG_CTRL (*(volatile uint32_t*)(IO_REG_BASE + 0x00000000))
|
||||
#define IO_REG_CTRL_STOP (1 << 0)
|
||||
|
||||
/* -- Register 'CONSOLE' -- */
|
||||
#define IO_REG_CONSOLE (*(volatile uint32_t*)(IO_REG_BASE + 0x00000004))
|
||||
#define IO_REG_CONSOLE_DATA__MASK 0x000000ff
|
||||
#define IO_REG_CONSOLE_DATA__SHIFT 0
|
||||
#define IO_REG_CONSOLE_SEND (1 << 8)
|
||||
#define IO_REG_CONSOLE_VALID (1 << 9)
|
||||
|
||||
#endif // _IO_REG_H_
|
||||
Reference in New Issue
Block a user