board.h 837 B

123456789101112131415161718192021222324252627282930313233343536
  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. #define CONFIG_MX6
  19. #define CONFIG_MX6UL
  20. #if defined(__CC_ARM)
  21. extern int Image$$RW_IRAM1$$ZI$$Limit;
  22. #define HEAP_BEGIN ((void*)&Image$$RW_IRAM1$$ZI$$Limit)
  23. #elif defined(__GNUC__)
  24. extern int __bss_end;
  25. #define HEAP_BEGIN ((void*)&__bss_end)
  26. #endif
  27. #define HEAP_END (void*)(0x80000000 + 32 * 1024 * 1024)
  28. void rt_hw_board_init(void);
  29. #endif