[add] stm32 SDIO_MAX_FREQ option.If not defined, the default minimum value is 1000000 .

This commit is contained in:
tangweikang 2019-06-18 16:14:21 +08:00
parent 34059c40c4
commit c4c58a0ead
3 changed files with 20 additions and 5 deletions

View File

@ -33,9 +33,12 @@
#endif /* defined(SOC_SERIES_STM32F1) || defined(SOC_SERIES_STM32F4) */ #endif /* defined(SOC_SERIES_STM32F1) || defined(SOC_SERIES_STM32F4) */
#define SDIO_BUFF_SIZE 4096 #define SDIO_BUFF_SIZE 4096
#define SDIO_MAX_FREQ 1000000
#define SDIO_ALIGN_LEN 32 #define SDIO_ALIGN_LEN 32
#ifndef SDIO_MAX_FREQ
#define SDIO_MAX_FREQ (1000000)
#endif
#ifndef SDIO_BASE_ADDRESS #ifndef SDIO_BASE_ADDRESS
#define SDIO_BASE_ADDRESS (0x40012800U) #define SDIO_BASE_ADDRESS (0x40012800U)
#endif #endif

View File

@ -59,6 +59,12 @@ menu "Onboard Peripheral Drivers"
select RT_USING_DFS select RT_USING_DFS
select RT_USING_DFS_ELMFAT select RT_USING_DFS_ELMFAT
default n default n
if BSP_USING_SDCARD
config SDIO_MAX_FREQ
int "sdio max freq"
range 0 24000000
default 1000000
endif
endmenu endmenu

View File

@ -46,6 +46,12 @@ menu "Onboard Peripheral Drivers"
select RT_USING_DFS_ELMFAT select RT_USING_DFS_ELMFAT
select RT_USING_PIN select RT_USING_PIN
default n default n
if BSP_USING_SDCARD
config SDIO_MAX_FREQ
int "sdio max freq"
range 0 24000000
default 24000000
endif
config BSP_USING_TOUCH config BSP_USING_TOUCH
bool "Enable TOUCH" bool "Enable TOUCH"