board.h 787 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * File : board.h
  3. * Copyright (c) 2006-2022, RT-Thread Development Team
  4. *
  5. * SPDX-License-Identifier: Apache-2.0
  6. *
  7. * Change Logs:
  8. * Date Author Notes
  9. * 2013-07-06 Bernard the first version
  10. */
  11. #ifndef __BOARD_H__
  12. #define __BOARD_H__
  13. #include <virt.h>
  14. extern unsigned char __bss_start;
  15. extern unsigned char __bss_end;
  16. #define HEAP_BEGIN (void *)&__bss_end
  17. #ifdef RT_USING_SMART
  18. #define HEAP_END (rt_size_t)(KERNEL_VADDR_START + 64 * 1024 * 1024)
  19. #define PAGE_START HEAP_END + 1 * 1024 * 1024
  20. #define PAGE_END ((rt_size_t)KERNEL_VADDR_START + 128 * 1024 * 1024)
  21. #else
  22. #define HEAP_END ((void *)HEAP_BEGIN + 64 * 1024 * 1024)
  23. #define KERNEL_VADDR_START 0x40000000
  24. #endif
  25. void rt_hw_board_init(void);
  26. int rt_hw_uart_init(void);
  27. #endif