board.h 839 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. */
  10. // <<< Use Configuration Wizard in Context Menu >>>
  11. #ifndef __BOARD_H__
  12. #define __BOARD_H__
  13. #ifdef __CC_ARM
  14. extern int Image$$RW_IRAM1$$ZI$$Limit;
  15. #define HEAP_BEGIN (&Image$$RW_IRAM1$$ZI$$Limit)
  16. #elif __ICCARM__
  17. #pragma section="HEAP"
  18. #define HEAP_BEGIN (__segment_end("HEAP"))
  19. #else
  20. extern int __bss_end;
  21. #define HEAP_BEGIN (&__bss_end)
  22. #endif
  23. #define LPC824_SRAM_SIZE 8
  24. #define LPC824_SRAM_END (0x10000000 + LPC824_SRAM_SIZE * 1024)
  25. #define HEAP_END LPC824_SRAM_END
  26. void rt_hw_board_init(void);
  27. void Error_Handler(void);
  28. #endif
  29. //*** <<< end of configuration section >>> ***