board.h 483 B

123456789101112131415161718192021222324
  1. #ifndef _BOARD_H_
  2. #define _BOARD_H_
  3. #include <rtthread.h>
  4. #include "nrf.h"
  5. #if defined(__CC_ARM) || defined(__CLANG_ARM)
  6. extern int Image$$RW_IRAM1$$ZI$$Limit;
  7. #define HEAP_BEGIN ((void *)&Image$$RW_IRAM1$$ZI$$Limit)
  8. #elif __ICCARM__
  9. #pragma section="CSTACK"
  10. #define HEAP_BEGIN (__segment_end("CSTACK"))
  11. #else
  12. extern int __bss_end;
  13. #define HEAP_BEGIN ((void *)&__bss_end)
  14. #endif
  15. #define HEAP_END (0x20000000 + 64*1024)
  16. void rt_hw_board_init(void);
  17. #endif