board.h 701 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-02-22 airm2m first version
  9. */
  10. #ifndef __BOARD_H__
  11. #define __BOARD_H__
  12. #include "app_inc.h"
  13. #include <rtthread.h>
  14. #include "rtconfig.h"
  15. #ifdef __CC_ARM
  16. extern int Image$$RW_IRAM1$$ZI$$Limit;
  17. #define HEAP_BEGIN ((void *)&Image$$RW_IRAM1$$ZI$$Limit)
  18. #elif __ICCARM__
  19. #pragma section="HEAP"
  20. #define HEAP_BEGIN (__segment_end("HEAP"))
  21. #else
  22. extern int __bss_end;
  23. #define HEAP_BEGIN ((void *)&__bss_end)
  24. #endif
  25. #define HEAP_END (void*)(0x20000000 + 0xA0000)
  26. void rt_hw_board_init(void);
  27. int rt_vbus_do_init(void);
  28. #endif