board.h 667 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Email: opensource_embedded@phytium.com.cn
  7. *
  8. * Change Logs:
  9. * Date Author Notes
  10. * 2022-10-26 huanghe first commit
  11. *
  12. */
  13. #ifndef __BOARD_H__
  14. #define __BOARD_H__
  15. #include "fparameters.h"
  16. #include "phytium_cpu.h"
  17. #if defined(__CC_ARM)
  18. extern int Image$$RW_IRAM1$$ZI$$Limit;
  19. #define HEAP_BEGIN ((void *)&Image$$RW_IRAM1$$ZI$$Limit)
  20. #elif defined(__GNUC__)
  21. extern int __bss_end;
  22. #define HEAP_BEGIN ((void *)&__bss_end)
  23. #endif
  24. #define HEAP_END (void *)(0x80000000 + 1024 * 1024 * 1024)
  25. void rt_hw_board_init(void);
  26. #endif