mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-28 01:17:07 +08:00
Merge pull request #2790 from balanceTWK/stm32_bsp_sdio
[bsp][stm32 ] 添加 SDIO_MAX_FREQ 选项
This commit is contained in:
commit
b6207a2008
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
@ -101,7 +107,7 @@ menu "On-chip Peripheral Drivers"
|
|||||||
bool "Enable UART2 TX DMA"
|
bool "Enable UART2 TX DMA"
|
||||||
depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
|
depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config BSP_USING_UART3
|
config BSP_USING_UART3
|
||||||
bool "Enable UART3"
|
bool "Enable UART3"
|
||||||
default n
|
default n
|
||||||
@ -115,7 +121,7 @@ menu "On-chip Peripheral Drivers"
|
|||||||
bool "Enable UART3 TX DMA"
|
bool "Enable UART3 TX DMA"
|
||||||
depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
|
depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config BSP_USING_UART4
|
config BSP_USING_UART4
|
||||||
bool "Enable UART4"
|
bool "Enable UART4"
|
||||||
default n
|
default n
|
||||||
@ -129,7 +135,7 @@ menu "On-chip Peripheral Drivers"
|
|||||||
bool "Enable UART4 TX DMA"
|
bool "Enable UART4 TX DMA"
|
||||||
depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
|
depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config BSP_USING_UART5
|
config BSP_USING_UART5
|
||||||
bool "Enable UART5"
|
bool "Enable UART5"
|
||||||
default n
|
default n
|
||||||
@ -143,7 +149,7 @@ menu "On-chip Peripheral Drivers"
|
|||||||
bool "Enable UART5 TX DMA"
|
bool "Enable UART5 TX DMA"
|
||||||
depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA
|
depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config BSP_USING_UART6
|
config BSP_USING_UART6
|
||||||
bool "Enable UART6"
|
bool "Enable UART6"
|
||||||
default n
|
default n
|
||||||
|
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user