diff --git a/bsp/stm32f429-apollo/KConfig b/bsp/stm32f429-apollo/KConfig index a034a7fe76..78dac4bd16 100644 --- a/bsp/stm32f429-apollo/KConfig +++ b/bsp/stm32f429-apollo/KConfig @@ -17,30 +17,5 @@ config $PKGS_DIR source "$RTT_DIR/KConfig" source "$PKGS_DIR/KConfig" - -config RT_USING_EXT_SDRAM - bool "Using RT_USING_EXT_SDRAM" - default y - -config RT_USING_UART1 - bool "Using RT_USING_UART1" - default y - -config RT_USING_UART2 - bool "Using RT_USING_UART2" - default y - -config RT_USING_UART3 - bool "Using RT_USING_UART3" - default y - -config RT_USING_SPI5 - bool "Using RT_USING_SPI5" - default y - -config RT_RTC_NAME - string "RT_RTC_NAME" - default rtc - - \ No newline at end of file +source "$BSP_DIR/drivers/Kconfig" diff --git a/bsp/stm32f429-apollo/drivers/Kconfig b/bsp/stm32f429-apollo/drivers/Kconfig new file mode 100644 index 0000000000..f9691bbe45 --- /dev/null +++ b/bsp/stm32f429-apollo/drivers/Kconfig @@ -0,0 +1,30 @@ +config RT_USING_EXT_SDRAM + bool "Enable SDRAM on the board" + default y + +config RT_USING_UART1 + bool "Enable UART1" + default y + +config RT_USING_UART2 + bool "Enable UART2" + default y + +config RT_USING_UART3 + bool "Enable UART3" + default y + +config RT_USING_SPI5 + bool "Enable SPI5" + default y + +config RT_RTC_NAME + string "The name of RTC device" + default rtc + +if RT_USING_LWIP + config CONFIG_PCF8574 + bool + select RT_USING_I2C + select RT_USING_I2C_BITOPS +endif diff --git a/bsp/stm32f429-apollo/drivers/SConscript b/bsp/stm32f429-apollo/drivers/SConscript index d6a93ac1b5..2d5c94929e 100644 --- a/bsp/stm32f429-apollo/drivers/SConscript +++ b/bsp/stm32f429-apollo/drivers/SConscript @@ -9,7 +9,6 @@ stm32f4xx_it.c usart.c drv_sdram.c drv_rtc.c -drv_nand.c drv_mpu.c """) @@ -17,6 +16,9 @@ drv_mpu.c if GetDepend('RT_USING_DFS'): src += ['drv_sdio_sd.c'] +if GetDepend('RT_USING_MTD_NAND'): + src += ['drv_nand.c'] + # add Ethernet drivers. if GetDepend('RT_USING_LWIP'): src += ['drv_eth.c', 'drv_iic.c', 'drv_pcf8574.c'] diff --git a/bsp/stm32f429-apollo/rtconfig.h b/bsp/stm32f429-apollo/rtconfig.h index 42dd21f1ed..39089b5bb9 100644 --- a/bsp/stm32f429-apollo/rtconfig.h +++ b/bsp/stm32f429-apollo/rtconfig.h @@ -71,6 +71,9 @@ #define DFS_FILESYSTEMS_MAX 2 #define DFS_FD_MAX 4 #define RT_USING_DFS_ELMFAT + +/* elm-chan's FatFs, Generic FAT Filesystem Module */ + #define RT_DFS_ELM_CODE_PAGE 437 #define RT_DFS_ELM_WORD_ACCESS #define RT_DFS_ELM_USE_LFN_0 @@ -85,6 +88,9 @@ #define RT_DFS_ELM_REENTRANT #define RT_USING_DFS_DEVFS #define RT_USING_DFS_NET +/* RT_USING_DFS_ROMFS is not set */ +/* RT_USING_DFS_RAMFS is not set */ +/* RT_USING_DFS_UFFS is not set */ /* RT_USING_DFS_NFS is not set */ /* Device Drivers */ @@ -198,14 +204,11 @@ /* miscellaneous packages */ /* PKG_USING_HELLO is not set */ - -/* BSP_SPECIAL CONFIG */ - -#define RT_RTC_NAME "rtc" #define RT_USING_EXT_SDRAM #define RT_USING_UART1 #define RT_USING_UART2 #define RT_USING_UART3 #define RT_USING_SPI5 +#define RT_RTC_NAME "rtc" #endif