diff options
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/platforms/STM32F1xx/platform_f105_f107.mk | 2 | ||||
-rw-r--r-- | os/hal/src/mmc_spi.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32F1xx/platform_f105_f107.mk b/os/hal/platforms/STM32F1xx/platform_f105_f107.mk index efc949763..5778a63eb 100644 --- a/os/hal/platforms/STM32F1xx/platform_f105_f107.mk +++ b/os/hal/platforms/STM32F1xx/platform_f105_f107.mk @@ -9,12 +9,12 @@ PLATFORMSRC = ${CHIBIOS}/os/hal/platforms/STM32F1xx/stm32_dma.c \ ${CHIBIOS}/os/hal/platforms/STM32/icu_lld.c \
${CHIBIOS}/os/hal/platforms/STM32/mac_lld.c \
${CHIBIOS}/os/hal/platforms/STM32/pwm_lld.c \
- ${CHIBIOS}/os/hal/platforms/STM32/serial_lld.c \
${CHIBIOS}/os/hal/platforms/STM32/sdc_lld.c \
${CHIBIOS}/os/hal/platforms/STM32/GPIOv1/pal_lld.c \
${CHIBIOS}/os/hal/platforms/STM32/I2Cv1/i2c_lld.c \
${CHIBIOS}/os/hal/platforms/STM32/RTCv1/rtc_lld.c \
${CHIBIOS}/os/hal/platforms/STM32/SPIv1/spi_lld.c \
+ ${CHIBIOS}/os/hal/platforms/STM32/USARTv1/serial_lld.c \
${CHIBIOS}/os/hal/platforms/STM32/USARTv1/uart_lld.c \
${CHIBIOS}/os/hal/platforms/STM32/OTGv1/usb_lld.c
diff --git a/os/hal/src/mmc_spi.c b/os/hal/src/mmc_spi.c index c06ce3351..b2fd5b724 100644 --- a/os/hal/src/mmc_spi.c +++ b/os/hal/src/mmc_spi.c @@ -559,6 +559,7 @@ bool_t mmcDisconnect(MMCDriver *mmcp) { chSysUnlock();
/* Wait for the pending write operations to complete.*/
+ spiStart(mmcp->config->spip, mmcp->config->hscfg);
sync(mmcp);
spiStop(mmcp->config->spip);
@@ -787,6 +788,7 @@ bool_t mmcSync(MMCDriver *mmcp) { if (mmcp->state != BLK_READY)
return CH_FAILED;
+ spiStart(mmcp->config->spip, mmcp->config->hscfg);
sync(mmcp);
return CH_SUCCESS;
}
|