summaryrefslogtreecommitdiff
path: root/bsp/lpc54114-lite/drivers
diff options
context:
space:
mode:
author流光 <[email protected]>2018-12-11 15:04:49 +0800
committer流光 <[email protected]>2018-12-11 15:04:49 +0800
commitfc0d4e72a4f44c02ddac0ae475e90acac25152d5 (patch)
tree68a0230c279cef470bb66437a9daec94259fed24 /bsp/lpc54114-lite/drivers
parentd00ef3b1ea923bd044ce79b9792e968bd7f35aa1 (diff)
[bsp][lpc54114] 修复drv_gpio.c drv_romfs.c驱动未被默认编译的问题.
Diffstat (limited to 'bsp/lpc54114-lite/drivers')
-rw-r--r--bsp/lpc54114-lite/drivers/Kconfig6
-rw-r--r--bsp/lpc54114-lite/drivers/SConscript4
2 files changed, 10 insertions, 0 deletions
diff --git a/bsp/lpc54114-lite/drivers/Kconfig b/bsp/lpc54114-lite/drivers/Kconfig
index 5544448da1..e616638663 100644
--- a/bsp/lpc54114-lite/drivers/Kconfig
+++ b/bsp/lpc54114-lite/drivers/Kconfig
@@ -19,6 +19,12 @@ menu "LPC54110 Bsp Config"
default y
endmenu
+ config BSP_USING_ROMFS
+ bool "Enable ROMFS"
+ select RT_USING_DFS
+ select RT_USING_DFS_ROMFS
+ default y
+
config BSP_USING_SDCARD
bool "Enable SDCARD"
select BSP_USING_SPI2
diff --git a/bsp/lpc54114-lite/drivers/SConscript b/bsp/lpc54114-lite/drivers/SConscript
index ced26be9c3..1bdfeedc1c 100644
--- a/bsp/lpc54114-lite/drivers/SConscript
+++ b/bsp/lpc54114-lite/drivers/SConscript
@@ -5,6 +5,7 @@ cwd = GetCurrentDir()
src = Split("""
board.c
clock_config.c
+drv_gpio.c
""")
CPPPATH = [cwd]
@@ -19,6 +20,9 @@ if GetDepend('BSP_USING_SPI2'):
if GetDepend('BSP_USING_I2C4'):
src = src + ['drv_i2c.c']
+if GetDepend('BSP_USING_ROMFS'):
+ src = src + ['drv_romfs.c']
+
if GetDepend('BSP_USING_SDCARD'):
src = src + ['drv_sdcard.c']