board.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. #include <fsl_common.h>
  18. #include <fsl_lpuart.h>
  19. #include <fsl_iomuxc.h>
  20. #ifdef __CC_ARM
  21. extern int Image$$RTT_HEAP$$ZI$$Base;
  22. extern int Image$$RTT_HEAP$$ZI$$Limit;
  23. #define HEAP_BEGIN (&Image$$RTT_HEAP$$ZI$$Base)
  24. #define HEAP_END (&Image$$RTT_HEAP$$ZI$$Limit)
  25. #elif __ICCARM__
  26. #pragma section="HEAP"
  27. #define HEAP_BEGIN (__segment_end("HEAP"))
  28. extern void __RTT_HEAP_END;
  29. #define HEAP_END (&__RTT_HEAP_END)
  30. #else
  31. extern int heap_start;
  32. extern int heap_end;
  33. #define HEAP_BEGIN (&heap_start)
  34. #define HEAP_END (&heap_end)
  35. #endif
  36. #define HEAP_SIZE ((uint32_t)HEAP_END - (uint32_t)HEAP_BEGIN)
  37. #define SDRAM_MPU_INIT
  38. #define SDRAM_BEGIN (0x80000000u)
  39. #define SDRAM_END (0x81E00000u)
  40. void rt_hw_board_init(void);
  41. #endif
  42. //*** <<< end of configuration section >>> ***