board.h 606 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2013-07-06 Bernard the first version
  9. */
  10. #ifndef __BOARD_H__
  11. #define __BOARD_H__
  12. #include "ft_parameters.h"
  13. #include "ft2004.h"
  14. #if defined(__CC_ARM)
  15. extern int Image$$RW_IRAM1$$ZI$$Limit;
  16. #define HEAP_BEGIN ((void *)&Image$$RW_IRAM1$$ZI$$Limit)
  17. #elif defined(__GNUC__)
  18. extern int __bss_end;
  19. #define HEAP_BEGIN ((void *)&__bss_end)
  20. #endif
  21. #define HEAP_END (void *)(0x80000000 + 1024 * 1024 * 1024)
  22. void rt_hw_board_init(void);
  23. #endif