未验证 提交 e4c237d5 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #995 from DengQilong/54608_dev

[BSP] update lpc54608 BSP and add more options.
......@@ -257,4 +257,5 @@ CONFIG_LWIP_SO_RCVBUF=1
#
# CONFIG_PKG_USING_HELLO is not set
CONFIG_RT_USING_UART0=y
CONFIG_USE_EXT_SDRAM=y
CONFIG_BSP_DRV_SDCARD=y
CONFIG_BSP_DRV_SDRAM=y
......@@ -52,8 +52,10 @@ int mnt_init(void)
}
#endif
#ifdef BSP_DRV_SDCARD
/* initilize sd card */
mci_hw_init("sd0");
#endif
#ifdef RT_DFS_ELM_REENTRANT
/* mount sd card fat partition 1 as root directory */
......
......@@ -2,10 +2,10 @@ config RT_USING_UART0
bool "Enable UART0"
default y
config RT_DFS_ELM_REENTRANT
config BSP_DRV_SDCARD
bool "Enable SD Card"
default y
config USE_EXT_SDRAM
bool "Enable SDRAM"
default y
\ No newline at end of file
config BSP_DRV_SDRAM
bool "Enable SDRAM"
default y
\ No newline at end of file
......@@ -70,7 +70,7 @@ void rt_hw_board_init()
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
#if LPC_EXT_SDRAM == 1
#ifdef BSP_DRV_SDRAM
lpc_sdram_hw_init();
#endif
......
......@@ -23,11 +23,6 @@
#include <rtthread.h>
/* disable SDRAM in default */
#ifndef USE_EXT_SDRAM
#define LPC_EXT_SDRAM 1
#endif
// <RDTConfigurator URL="http://www.rt-thread.com/eclipse">
// <integer name="LPC_EXT_SDRAM" description="Begin Address of External SDRAM" default="0xA0000000" />
......
......@@ -176,7 +176,7 @@
<Group>
<GroupName>Applications</GroupName>
<tvExp>0</tvExp>
<tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<RteFlg>0</RteFlg>
......@@ -220,7 +220,7 @@
<Group>
<GroupName>Drivers</GroupName>
<tvExp>0</tvExp>
<tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<RteFlg>0</RteFlg>
......
......@@ -230,6 +230,7 @@
/* PKG_USING_HELLO is not set */
#define RT_USING_UART0
#define USE_EXT_SDRAM
#define BSP_DRV_SDCARD
#define BSP_DRV_SDRAM
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册