arch.h
来自「RT-Thread是发展中的下一代微内核嵌入式实时操作系统」· C头文件 代码 · 共 54 行
H
54 行
#ifndef __ARCH_H__#define __ARCH_H__/*lumit4510 memory layout16M SDRAM0x0 -- 0x1000000+------+ 0x1000000| | service entry description+------+ 0x0fffc00| || || || || || || || || |+------+ 0xa000 <-- kernel and service| |+------+ 0x8000 <-- bootloader| || || |+------+ 0x0000*//* Macro to adjust alignment */#define PAGE_SIZE 4096/* Page mapping */#define phys_to_virt(p_addr) p_addr#define virt_to_phys(v_addr) v_addr/** the start address of service description page */#define SERVICE_START 0x0fffc00#define SERVICE_SIZE 0x400/** the start address of service entry */#define ENTRY_START 0xa000struct mk_service;/** set arch memory information */void service_memory_init(struct mk_service* service);void rt_arch_init();char rt_getc();void rt_putc(const char c);void rt_puts(const char* str);#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?