board.h 840 B

123456789101112131415161718192021222324252627282930313233343536
  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-11 liYony the first version
  9. */
  10. #ifndef __BOARD_H__
  11. #define __BOARD_H__
  12. #include <zynqmp.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 KERNEL_VADDR_START 0x0
  21. #define HEAP_END (KERNEL_VADDR_START + 64 * 1024 * 1024)
  22. #define PAGE_START HEAP_END
  23. #define PAGE_END ((size_t)PAGE_START + 64 * 1024 * 1024)
  24. #endif
  25. void rt_hw_board_init(void);
  26. int rt_hw_uart_init(void);
  27. #endif /* __BOARD_H__ */