board.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. * 2009-09-22 Bernard add board.h to this bsp
  9. * 2010-02-04 Magicoe add board.h to LPC176x bsp
  10. * 2013-12-18 Bernard porting to LPC4088 bsp
  11. * 2017-08-02 XiaoYang porting to LPC54608 bsp
  12. */
  13. #ifndef __BOARD_H__
  14. #define __BOARD_H__
  15. #include <stdint.h>
  16. #include <rtthread.h>
  17. // </RDTConfigurator>
  18. #ifdef __CC_ARM
  19. extern int Image$$RTT_HEAP$$ZI$$Base;
  20. extern int Image$$RTT_HEAP$$ZI$$Limit;
  21. #define HEAP_BEGIN (&Image$$RTT_HEAP$$ZI$$Base)
  22. #define HEAP_END (&Image$$RTT_HEAP$$ZI$$Limit)
  23. #elif __ICCARM__
  24. #pragma section="HEAP"
  25. #define HEAP_BEGIN (__segment_end("HEAP"))
  26. extern void __RTT_HEAP_END;
  27. #define HEAP_END (&__RTT_HEAP_END)
  28. #else
  29. extern int heap_start;
  30. extern int heap_end;
  31. #define HEAP_BEGIN (&heap_start)
  32. #define HEAP_END (&heap_end)
  33. #endif
  34. //#define HEAP_END (void*)(0x20000000 + 0x28000)
  35. extern void rt_hw_board_init(void);
  36. #endif