mirror of
https://github.com/handsomezhuzhu/2025-yatcpu.git
synced 2026-02-21 04:20:14 +00:00
add csrc
This commit is contained in:
@@ -21,3 +21,13 @@
|
||||
#define UART_BAUDRATE ((volatile unsigned int *) (UART_BASE + 4))
|
||||
#define UART_RECV ((volatile unsigned int *) (UART_BASE + 12))
|
||||
#define UART_SEND ((volatile unsigned int *) (UART_BASE + 16))
|
||||
//remap the mmio to reduce memory usage of page table
|
||||
#define VA_VRAM_BASE 0x00100000
|
||||
#define VA_VRAM ((volatile unsigned char *) VA_VRAM_BASE)
|
||||
#define VA_TIMER_BASE 0x00200000
|
||||
#define VA_TIMER_LIMIT ((volatile unsigned int *) (VA_TIMER_BASE + 4))
|
||||
#define VA_TIMER_ENABLED ((volatile unsigned int *) (VA_TIMER_BASE + 8))
|
||||
#define VA_UART_BASE 0x00300000
|
||||
#define VA_UART_BAUDRATE ((volatile unsigned int *) (VA_UART_BASE + 4))
|
||||
#define VA_UART_RECV ((volatile unsigned int *) (VA_UART_BASE + 12))
|
||||
#define VA_UART_SEND ((volatile unsigned int *) (VA_UART_BASE + 16))
|
||||
Reference in New Issue
Block a user