board.h 817 B

1234567891011121314151617181920212223242526272829303132333435
  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. #ifndef BOARD_H__
  11. #define BOARD_H__
  12. #include <stdint.h>
  13. #include "mmu.h"
  14. #include "ioremap.h"
  15. extern int __bss_end;
  16. #define HEAP_BEGIN ((void*)&__bss_end)
  17. #ifdef RT_USING_SMART
  18. #define HEAP_END ((size_t)KERNEL_VADDR_START + 32 * 1024 * 1024)
  19. #define PAGE_START HEAP_END
  20. #define PAGE_END ((size_t)KERNEL_VADDR_START + 128 * 1024 * 1024)
  21. #else
  22. #define KERNEL_VADDR_START 0x0
  23. #define HEAP_END (KERNEL_VADDR_START + 32 * 1024 * 1024)
  24. #define PAGE_START HEAP_END
  25. #define PAGE_END ((size_t)PAGE_START + 128 * 1024 * 1024)
  26. #endif
  27. void rt_hw_board_init(void);
  28. #endif