board.h 900 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (c) 2006-2021, 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. * 2010-02-04 Magicoe add board.h to LPC176x bsp
  10. * 2014-07-18 ArdaFu port it to TM4C129X bsp
  11. */
  12. #ifndef __BOARD_H__
  13. #define __BOARD_H__
  14. #include "tm4c1294ncpdt.h"
  15. #include <rtthread.h>
  16. #include <stdbool.h>
  17. #include <stdint.h>
  18. extern uint32_t SystemCoreClock;
  19. #ifdef __CC_ARM
  20. extern int Image$$RW_IRAM$$ZI$$Limit;
  21. #define HEAP_BEGIN ((void *)&Image$$RW_IRAM$$ZI$$Limit)
  22. #elif __ICCARM__
  23. #pragma section="HEAP"
  24. #define HEAP_BEGIN (__segment_end("HEAP"))
  25. #else
  26. extern int _ebss;
  27. #define HEAP_BEGIN ((void *)&_ebss)
  28. #endif
  29. #define HEAP_END ((void *)(0x20000000 + 256*1024))
  30. #define FINSH_DEVICE_NAME RT_CONSOLE_DEVICE_NAME
  31. void rt_hw_board_init(void);
  32. #endif