board.h 796 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * File : board.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2013, 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. * 2013-07-06 Bernard the first version
  13. */
  14. #ifndef __BOARD_H__
  15. #define __BOARD_H__
  16. #include <registers.h>
  17. #include <irq_numbers.h>
  18. #if defined(__CC_ARM)
  19. extern int Image$$RW_IRAM1$$ZI$$Limit;
  20. #define HEAP_BEGIN ((void*)&Image$$RW_IRAM1$$ZI$$Limit)
  21. #elif defined(__GNUC__)
  22. extern int __bss_end;
  23. #define HEAP_BEGIN ((void*)&__bss_end)
  24. #endif
  25. #define HEAP_END (void*)(0x80000000 + 32 * 1024 * 1024)
  26. void rt_hw_board_init(void);
  27. #endif