board.h 665 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022/04/25 flyingcys first version
  9. */
  10. #ifndef BOARD_H__
  11. #define BOARD_H__
  12. #include <rtconfig.h>
  13. extern unsigned int __bss_start;
  14. extern unsigned int __bss_end;
  15. #ifndef RT_USING_SMART
  16. #define KERNEL_VADDR_START 0x0
  17. #endif
  18. #define RT_HW_HEAP_BEGIN ((void *)&__bss_end)
  19. #define RT_HW_HEAP_END ((void *)(RT_HW_HEAP_BEGIN + 16 * 1024 * 1024))
  20. #define RT_HW_PAGE_START RT_HW_HEAP_END
  21. #define RT_HW_PAGE_END ((void *)(KERNEL_VADDR_START + 64 * 1024 * 1024))
  22. void rt_hw_board_init(void);
  23. #endif