mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 13:52:22 +08:00
stm32f4discovery/stm32_mmcsd.c: remove redundant SCK pin configuration, it's already selected in board.h
This commit is contained in:
@@ -78,7 +78,6 @@ int stm32_mmcsd_initialize(int port, int minor)
|
||||
int rv;
|
||||
|
||||
stm32_configgpio(GPIO_MMCSD_NCD); /* Assign SD_DET */
|
||||
stm32_configgpio(GPIO_SPI2_SCK_2); /* Assign PB13 as SPI2_SCK */
|
||||
stm32_configgpio(GPIO_MMCSD_NSS); /* Assign CS */
|
||||
stm32_gpiowrite(GPIO_MMCSD_NSS, 1); /* Ensure the CS is inactive */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user