1 /*
2  * Copyright (c) 2006-2024 RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2024-10-28     zhujiale     The first version
9  */
10 
11 #ifndef BOARD_H__
12 #define BOARD_H__
13 
14 #include <stdint.h>
15 #include "mmu.h"
16 #include "ioremap.h"
17 
18 extern int __bss_end;
19 #define HEAP_BEGIN      ((void*)&__bss_end)
20 
21 #ifdef RT_USING_SMART
22 #define HEAP_END        ((size_t)KERNEL_VADDR_START + 32 * 1024 * 1024)
23 #define PAGE_START      HEAP_END
24 #define PAGE_END        ((size_t)KERNEL_VADDR_START + 128 * 1024 * 1024)
25 #else
26 #define KERNEL_VADDR_START 0x0
27 
28 #define HEAP_END        (KERNEL_VADDR_START + 32 * 1024 * 1024)
29 #define PAGE_START      HEAP_END
30 #define PAGE_END        ((size_t)PAGE_START + 128 * 1024 * 1024)
31 #endif
32 
33 void rt_hw_board_init(void);
34 
35 #endif
36