board.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. */
  15. #ifndef __BOARD_H__
  16. #define __BOARD_H__
  17. #include "LPC177x_8x.h"
  18. // <RDTConfigurator URL="http://www.rt-thread.com/eclipse">
  19. // <integer name="LPC_EXT_SDRAM" description="Enable External SDRAM memory" default="0" />
  20. #define LPC_EXT_SDRAM 1
  21. // <integer name="LPC_EXT_SDRAM" description="Begin Address of External SDRAM" default="0xA0000000" />
  22. #define LPC_EXT_SDRAM_BEGIN 0xA0000000
  23. // <integer name="LPC_EXT_SDRAM_END" description="End Address of External SDRAM" default="0xA4000000" />
  24. #define LPC_EXT_SDRAM_END 0xA4000000
  25. // <bool name="RT_USING_UART0" description="Using UART0" default="true" />
  26. #define RT_USING_UART0
  27. // <bool name="RT_USING_UART1" description="Using UART1" default="true" />
  28. //#define RT_USING_UART1
  29. // <bool name="RT_USING_UART2" description="Using UART2" default="true" />
  30. //#define RT_USING_UART2
  31. // <string name="RT_CONSOLE_DEVICE_NAME" description="The device name for console" default="uart" />
  32. #define RT_CONSOLE_DEVICE_NAME "uart0"
  33. // </RDTConfigurator>
  34. #define FINSH_DEVICE_NAME RT_CONSOLE_DEVICE_NAME
  35. void rt_hw_board_init(void);
  36. #endif