board.h 722 B

123456789101112131415161718192021222324252627
  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. * 2021-01-30 lizhirui 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. #define RT_HW_HEAP_BEGIN ((void *)&__bss_end)
  16. #define RT_HW_HEAP_END ((void *)(((rt_size_t)RT_HW_HEAP_BEGIN) + 100 * 1024 * 1024))
  17. #define RT_HW_PAGE_START RT_HW_HEAP_END
  18. #define RT_HW_PAGE_END ((void *)(((rt_size_t)RT_HW_PAGE_START) + 100 * 1024 * 1024))
  19. void rt_hw_board_init(void);
  20. void rt_init_user_mem(struct rt_thread *thread, const char *name, unsigned long *entry);
  21. #endif