Merge pull request #995 from DengQilong/54608_dev

[BSP] update lpc54608 BSP and add more options.
This commit is contained in:
Bernard Xiong 2017-11-14 17:37:08 +08:00 committed by GitHub
commit e4c237d58b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 13 additions and 14 deletions

View File

@ -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

View File

@ -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 */

View File

@ -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
config BSP_DRV_SDRAM
bool "Enable SDRAM"
default y

View 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

View File

@ -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" />

View File

@ -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>

View File

@ -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