board.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. #include "fsl_common.h"
  14. #include "clock_config.h"
  15. #ifdef __CC_ARM
  16. extern int Image$$RTT_HEAP$$ZI$$Base;
  17. extern int Image$$RTT_HEAP$$ZI$$Limit;
  18. #define HEAP_BEGIN (&Image$$RTT_HEAP$$ZI$$Base)
  19. #define HEAP_END (&Image$$RTT_HEAP$$ZI$$Limit)
  20. #elif __ICCARM__
  21. #pragma section="HEAP"
  22. #define HEAP_BEGIN (__segment_end("HEAP"))
  23. extern void __RTT_HEAP_END;
  24. #define HEAP_END (&__RTT_HEAP_END)
  25. #else
  26. extern int heap_start;
  27. extern int heap_end;
  28. #define HEAP_BEGIN (&heap_start)
  29. #define HEAP_END (&heap_end)
  30. #endif
  31. #define HEAP_SIZE ((uint32_t)HEAP_END - (uint32_t)HEAP_BEGIN)
  32. void rt_hw_board_init(void);
  33. #ifdef BSP_USING_ETH
  34. void imxrt_enet_pins_init(void);
  35. void imxrt_enet_phy_reset_by_gpio(void);
  36. #define PHY_ADDRESS 0x02u
  37. #endif
  38. #endif