board.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * File : board.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2009, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2009-09-22 Bernard add board.h to this bsp
  13. * 2010-02-04 Magicoe add board.h to LPC176x bsp
  14. * 2013-12-18 Bernard porting to LPC4088 bsp
  15. * 2017-08-02 XiaoYang porting to LPC54608 bsp
  16. */
  17. #ifndef __BOARD_H__
  18. #define __BOARD_H__
  19. #include <stdint.h>
  20. #include <rtthread.h>
  21. // <RDTConfigurator URL="http://www.rt-thread.com/eclipse">
  22. // <integer name="LPC_EXT_SDRAM" description="Begin Address of External SDRAM" default="0xA0000000" />
  23. #define LPC_EXT_SDRAM_BEGIN 0xA0000000
  24. // <integer name="LPC_EXT_SDRAM_END" description="End Address of External SDRAM" default="0xA2000000" />
  25. #define LPC_EXT_SDRAM_END 0xA0800000
  26. // </RDTConfigurator>
  27. #ifdef __CC_ARM
  28. extern int Image$$RTT_HEAP$$ZI$$Base;
  29. #define HEAP_BEGIN ((void *)&Image$$RTT_HEAP$$ZI$$Base)
  30. #elif __ICCARM__
  31. #pragma section="HEAP"
  32. #define HEAP_BEGIN (__segment_end("HEAP"))
  33. #else
  34. extern int __bss_end;
  35. #define HEAP_BEGIN ((void *)&__bss_end)
  36. #endif
  37. #define HEAP_END (void*)(0x20000000 + 0x28000)
  38. void rt_hw_board_init(void);
  39. #endif