1 /*
2  * File      : board.h
3  * This file is part of RT-Thread RTOS
4  * COPYRIGHT (C) 2006, RT-Thread Develop 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://openlab.rt-thread.com/license/LICENSE
9  *
10  * Change Logs:
11  * Date           Author       Notes
12  * 2006-10-08     Bernard      add board.h to this bsp
13  * 2009-12-25     yi.qiu          add LM3S configration
14  */
15 
16 // <<< Use Configuration Wizard in Context Menu >>>
17 #ifndef __BOARD_H__
18 #define __BOARD_H__
19 
20 /* whether use board external SRAM memory */
21 // <e>Use external SRAM memory on the board
22 // 	<i>Enable External SRAM memory
23 #define LM3S_EXT_SRAM          0
24 //	<o>Begin Address of External SRAM
25 //		<i>Default: 0x60000000
26 #define LM3S_EXT_SRAM_BEGIN    0x60000000 /* the begining address of external SRAM */
27 //	<o>End Address of External SRAM
28 //		<i>Default: 0x60000000
29 #define LM3S_EXT_SRAM_END      0x607FFFFF /* the end address of external SRAM */
30 // </e>
31 
32 // <o> Internal SRAM memory size[Kbytes] <8-64>
33 //	<i>Default: 64
34 #define LM3S_SRAM_SIZE         32
35 #define LM3S_SRAM_END          (0x20000000 + LM3S_SRAM_SIZE * 1024)
36 
37 // For lm3s9b9x, it should be SYSCTL_XTAL_16MHZ
38 #define LM3S_XTAL_TYPE      	SYSCTL_XTAL_168MHZ
39 
40 /* RT_USING_UART */
41 #define RT_UART_RX_BUFFER_SIZE	64
42 #define RT_USING_UART0
43 #define RT_USING_UART1
44 //#define RT_USING_UART2
45 
46 #define CONSOLE_DEVICE      "uart0"
47 #define FINSH_DEVICE_NAME   CONSOLE_DEVICE
48 
49 void rt_hw_board_led_on(int n);
50 void rt_hw_board_led_off(int n);
51 void rt_hw_board_init(void);
52 
53 void rt_hw_usart_init(void);
54 void rt_hw_sdcard_init(void);
55 
56 #endif
57