board.h 1016 B

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