board.h 653 B

123456789101112131415161718192021222324252627
  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. * 2017-5-30 Bernard the first version
  9. */
  10. #ifndef __BOARD_H__
  11. #define __BOARD_H__
  12. #include <rk3568.h>
  13. extern unsigned char __bss_start;
  14. extern unsigned char __bss_end;
  15. #define RT_HW_PAGE_START RT_ALIGN((unsigned long)&__bss_end, 0x1000)
  16. #define RT_HW_PAGE_END (RT_HW_PAGE_START + 0x100000)
  17. #define RT_HW_HEAP_BEGIN (void *)(RT_HW_PAGE_END)
  18. #define RT_HW_HEAP_END (void *)(RT_HW_HEAP_BEGIN + 64 * 1024 * 1024)
  19. void rt_hw_board_init(void);
  20. #endif /* __BOARD_H__ */