board.h 864 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) 2006-2022, 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 <rtthread.h>
  13. #include <rtconfig.h>
  14. extern unsigned int __bss_start;
  15. extern unsigned int __bss_end;
  16. #define RAM_SIZE (64 * 1024 * 1024)
  17. #define RAM_BASE (0x40000000)
  18. #define RAM_END_VADDR (KERNEL_VADDR_START + RAM_SIZE)
  19. #define RT_HW_HEAP_BEGIN ((void *)&__bss_end)
  20. #define RT_HW_HEAP_END ((void *)(((rt_size_t)RT_HW_HEAP_BEGIN) + 16 * 1024 * 1024))
  21. #define RT_HW_PAGE_START (RT_HW_HEAP_END)
  22. #define RT_HW_PAGE_END ((void *)RAM_END_VADDR)
  23. void rt_hw_board_init(void);
  24. void rt_init_user_mem(struct rt_thread *thread, const char *name, unsigned long *entry);
  25. #endif