board.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * Copyright (c) 2006-2018, 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. */
  12. #ifndef __BOARD_H__
  13. #define __BOARD_H__
  14. #include "LPC407x_8x_177x_8x.h"
  15. #include <rtthread.h>
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. /* SRAM allocation for Peripherals */
  20. #define USB_RAM_BASE 0x20000000
  21. #define MCI_RAM_BASE 0x20002000
  22. #define ETH_RAM_BASE 0x20004000
  23. /* Internal SRAM memory size[Kbytes] <16-256>, Default: 64*/
  24. #define SRAM_SIZE 64 * 1024
  25. #define SRAM_END (0x10000000 + SRAM_SIZE)
  26. #ifdef __CC_ARM
  27. extern int Image$$RW_IRAM1$$ZI$$Limit;
  28. #define HEAP_BEGIN ((void *)&Image$$RW_IRAM1$$ZI$$Limit)
  29. #elif __ICCARM__
  30. #pragma section="HEAP"
  31. #define HEAP_BEGIN (__segment_end("HEAP"))
  32. #else
  33. extern int __bss_end;
  34. #define HEAP_BEGIN ((void *)&__bss_end)
  35. #endif
  36. #define HEAP_END SRAM_END
  37. void rt_hw_board_init(void);
  38. #ifdef __cplusplus
  39. }
  40. #endif
  41. #endif /* __BOARD_H__ */