update bsp_lpc54608
This commit is contained in:
parent
543a83eb01
commit
7df2b52826
|
@ -257,4 +257,5 @@ CONFIG_LWIP_SO_RCVBUF=1
|
||||||
#
|
#
|
||||||
# CONFIG_PKG_USING_HELLO is not set
|
# CONFIG_PKG_USING_HELLO is not set
|
||||||
CONFIG_RT_USING_UART0=y
|
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
|
#endif
|
||||||
|
|
||||||
|
#ifdef BSP_DRV_SDCARD
|
||||||
/* initilize sd card */
|
/* initilize sd card */
|
||||||
mci_hw_init("sd0");
|
mci_hw_init("sd0");
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef RT_DFS_ELM_REENTRANT
|
#ifdef RT_DFS_ELM_REENTRANT
|
||||||
/* mount sd card fat partition 1 as root directory */
|
/* mount sd card fat partition 1 as root directory */
|
||||||
|
|
|
@ -2,10 +2,10 @@ config RT_USING_UART0
|
||||||
bool "Enable UART0"
|
bool "Enable UART0"
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config RT_DFS_ELM_REENTRANT
|
config BSP_DRV_SDCARD
|
||||||
bool "Enable SD Card"
|
bool "Enable SD Card"
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config USE_EXT_SDRAM
|
config BSP_DRV_SDRAM
|
||||||
bool "Enable SDRAM"
|
bool "Enable SDRAM"
|
||||||
default y
|
default y
|
|
@ -70,7 +70,7 @@ void rt_hw_board_init()
|
||||||
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
|
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LPC_EXT_SDRAM == 1
|
#ifdef BSP_DRV_SDRAM
|
||||||
lpc_sdram_hw_init();
|
lpc_sdram_hw_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -23,11 +23,6 @@
|
||||||
|
|
||||||
#include <rtthread.h>
|
#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">
|
// <RDTConfigurator URL="http://www.rt-thread.com/eclipse">
|
||||||
|
|
||||||
// <integer name="LPC_EXT_SDRAM" description="Begin Address of External SDRAM" default="0xA0000000" />
|
// <integer name="LPC_EXT_SDRAM" description="Begin Address of External SDRAM" default="0xA0000000" />
|
||||||
|
|
|
@ -176,7 +176,7 @@
|
||||||
|
|
||||||
<Group>
|
<Group>
|
||||||
<GroupName>Applications</GroupName>
|
<GroupName>Applications</GroupName>
|
||||||
<tvExp>0</tvExp>
|
<tvExp>1</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<cbSel>0</cbSel>
|
<cbSel>0</cbSel>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
|
@ -220,7 +220,7 @@
|
||||||
|
|
||||||
<Group>
|
<Group>
|
||||||
<GroupName>Drivers</GroupName>
|
<GroupName>Drivers</GroupName>
|
||||||
<tvExp>0</tvExp>
|
<tvExp>1</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<cbSel>0</cbSel>
|
<cbSel>0</cbSel>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
|
|
|
@ -230,6 +230,7 @@
|
||||||
|
|
||||||
/* PKG_USING_HELLO is not set */
|
/* PKG_USING_HELLO is not set */
|
||||||
#define RT_USING_UART0
|
#define RT_USING_UART0
|
||||||
#define USE_EXT_SDRAM
|
#define BSP_DRV_SDCARD
|
||||||
|
#define BSP_DRV_SDRAM
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue