diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-01-10 13:36:09 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-01-10 13:36:09 +0000 |
commit | a8693baa481e1c4d91379af08bbc9f459b1b4d56 (patch) | |
tree | 190b755173b3e2159025260994a1d3208241ab4c /os/hal/ports/STM32/LLD/SDMMCv1/hal_sdc_lld.c | |
parent | 0da6de11ee208137162df9206b3b5731e2980d28 (diff) | |
download | ChibiOS-a8693baa481e1c4d91379af08bbc9f459b1b4d56.tar.gz ChibiOS-a8693baa481e1c4d91379af08bbc9f459b1b4d56.tar.bz2 ChibiOS-a8693baa481e1c4d91379af08bbc9f459b1b4d56.zip |
SPIv1 and SPIv2 circular mode added. Rework of RCC files and all dependencies inside STM32 drivers. Documentation fixes in some HAL modules.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11247 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/LLD/SDMMCv1/hal_sdc_lld.c')
-rw-r--r-- | os/hal/ports/STM32/LLD/SDMMCv1/hal_sdc_lld.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/os/hal/ports/STM32/LLD/SDMMCv1/hal_sdc_lld.c b/os/hal/ports/STM32/LLD/SDMMCv1/hal_sdc_lld.c index 60127598a..0fe6fe032 100644 --- a/os/hal/ports/STM32/LLD/SDMMCv1/hal_sdc_lld.c +++ b/os/hal/ports/STM32/LLD/SDMMCv1/hal_sdc_lld.c @@ -450,7 +450,7 @@ void sdc_lld_start(SDCDriver *sdcp) { dmaStreamSetFIFO(sdcp->dma, STM32_DMA_FCR_DMDIS |
STM32_DMA_FCR_FTH_FULL);
#endif
- rccEnableSDMMC1(FALSE);
+ rccEnableSDMMC1(false);
}
#endif /* STM32_SDC_USE_SDMMC1 */
@@ -466,7 +466,7 @@ void sdc_lld_start(SDCDriver *sdcp) { dmaStreamSetFIFO(sdcp->dma, STM32_DMA_FCR_DMDIS |
STM32_DMA_FCR_FTH_FULL);
#endif
- rccEnableSDMMC2(FALSE);
+ rccEnableSDMMC2(false);
}
#endif /* STM32_SDC_USE_SDMMC2 */
}
@@ -501,13 +501,13 @@ void sdc_lld_stop(SDCDriver *sdcp) { /* Clock deactivation.*/
#if STM32_SDC_USE_SDMMC1
if (&SDCD1 == sdcp) {
- rccDisableSDMMC1(FALSE);
+ rccDisableSDMMC1();
}
#endif
#if STM32_SDC_USE_SDMMC2
if (&SDCD2 == sdcp) {
- rccDisableSDMMC2(FALSE);
+ rccDisableSDMMC2();
}
#endif
}
@@ -816,10 +816,10 @@ bool sdc_lld_read_aligned(SDCDriver *sdcp, uint32_t startblk, SDMMC_DCTRL_DMAEN |
SDMMC_DCTRL_DTEN;
- if (sdc_lld_prepare_read(sdcp, startblk, blocks, resp) == TRUE)
+ if (sdc_lld_prepare_read(sdcp, startblk, blocks, resp) == true)
goto error;
- if (sdc_lld_wait_transaction_end(sdcp, blocks, resp) == TRUE)
+ if (sdc_lld_wait_transaction_end(sdcp, blocks, resp) == true)
goto error;
return HAL_SUCCESS;
@@ -871,7 +871,7 @@ bool sdc_lld_write_aligned(SDCDriver *sdcp, uint32_t startblk, sdcp->sdmmc->DLEN = blocks * MMCSD_BLOCK_SIZE;
/* Talk to card what we want from it.*/
- if (sdc_lld_prepare_write(sdcp, startblk, blocks, resp) == TRUE)
+ if (sdc_lld_prepare_write(sdcp, startblk, blocks, resp) == true)
goto error;
/* Transaction starts just after DTEN bit setting.*/
@@ -880,7 +880,7 @@ bool sdc_lld_write_aligned(SDCDriver *sdcp, uint32_t startblk, SDMMC_DCTRL_DMAEN |
SDMMC_DCTRL_DTEN;
- if (sdc_lld_wait_transaction_end(sdcp, blocks, resp) == TRUE)
+ if (sdc_lld_wait_transaction_end(sdcp, blocks, resp) == true)
goto error;
return HAL_SUCCESS;
|