board.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 URL="http://www.rt-thread.com/eclipse">
  18. // <integer name="LPC_EXT_SDRAM" description="Begin Address of External SDRAM" default="0xA0000000" />
  19. #define LPC_EXT_SDRAM_BEGIN 0xA0000000
  20. // <integer name="LPC_EXT_SDRAM_END" description="End Address of External SDRAM" default="0xA2000000" />
  21. #define LPC_EXT_SDRAM_END 0xA0800000
  22. // </RDTConfigurator>
  23. #ifdef __CC_ARM
  24. extern int Image$$RTT_HEAP$$ZI$$Base;
  25. #define HEAP_BEGIN ((void *)&Image$$RTT_HEAP$$ZI$$Base)
  26. #elif __ICCARM__
  27. #pragma section="HEAP"
  28. #define HEAP_BEGIN (__segment_end("HEAP"))
  29. #else
  30. extern int __bss_end;
  31. #define HEAP_BEGIN ((void *)&__bss_end)
  32. #endif
  33. #define HEAP_END (void*)(0x20000000 + 0x28000)
  34. void rt_hw_board_init(void);
  35. #endif