Add sources

This commit is contained in:
Nikolay Puzanov
2023-06-11 16:15:40 +03:00
parent 82f90610fb
commit 686d12bf81
48 changed files with 23261 additions and 0 deletions

17
source/io_reg.h Normal file
View 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_