board.h 805 B

12345678910111213141516171819202122232425262728293031323334
  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-04-15 liYony the first version
  9. */
  10. #ifndef __BOARD_H__
  11. #define __BOARD_H__
  12. #include <cv18xx.h>
  13. extern unsigned char __bss_end;
  14. #define HEAP_BEGIN ((void*)&__bss_end)
  15. #ifdef RT_USING_SMART
  16. #define HEAP_END ((size_t)KERNEL_VADDR_START + 64 * 1024 * 1024)
  17. #define PAGE_START HEAP_END
  18. #define PAGE_END ((size_t)KERNEL_VADDR_START + 128 * 1024 * 1024)
  19. #else
  20. #define HEAP_END (ARCH_RAM_OFFSET + 64 * 1024 * 1024)
  21. #define PAGE_START HEAP_END
  22. #define PAGE_END ((size_t)PAGE_START + 64 * 1024 * 1024)
  23. #endif
  24. void rt_hw_board_init(void);
  25. int rt_hw_uart_init(void);
  26. #endif /* __BOARD_H__ */