board.h 1.4 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. * 2010-02-04 Magicoe add board.h to LPC176x bsp
  14. * 2014-07-18 ArdaFu port it to TM4C129X bsp
  15. */
  16. #ifndef __BOARD_H__
  17. #define __BOARD_H__
  18. #include "tm4c129xnczad.h"
  19. #include <rtthread.h>
  20. #include <stdbool.h>
  21. #include <stdint.h>
  22. extern uint32_t SysClock;
  23. // <RDTConfigurator URL="http://www.rt-thread.com/eclipse">
  24. // <bool name="RT_USING_UART0" description="Using UART0" default="true" />
  25. #define RT_USING_UART0
  26. // <bool name="RT_USING_UART1" description="Using UART1" default="true" />
  27. //#define RT_USING_UART1
  28. // <bool name="RT_USING_UART2" description="Using UART2" default="true" />
  29. //#define RT_USING_UART2
  30. // </RDTConfigurator>
  31. #ifdef __CC_ARM
  32. extern int Image$$RW_IRAM1$$ZI$$Limit;
  33. #define HEAP_BEGIN ((void *)&Image$$RW_IRAM1$$ZI$$Limit)
  34. #elif __ICCARM__
  35. #pragma section="HEAP"
  36. #define HEAP_BEGIN (__segment_end("HEAP"))
  37. #else
  38. extern int __bss_end;
  39. #define HEAP_BEGIN ((void *)&__bss_end)
  40. #endif
  41. #define HEAP_END (0x20000000 + 256*1024)
  42. #define FINSH_DEVICE_NAME RT_CONSOLE_DEVICE_NAME
  43. void rt_hw_board_init(void);
  44. #endif