Browse Source

Merge pull request #4106 from greedyhao/drv-sdio

[bsp][stm32]Fixed spelling errors in drv_sdio.c
Bernard Xiong 4 years ago
parent
commit
1013e1cfb7
1 changed files with 4 additions and 4 deletions
  1. 4 4
      bsp/stm32/libraries/HAL_Drivers/drv_sdio.c

+ 4 - 4
bsp/stm32/libraries/HAL_Drivers/drv_sdio.c

@@ -353,7 +353,7 @@ static void rthw_sdio_send_command(struct rthw_sdio *sdio, struct sdio_pkg *pkg)
 
 
 /**
 /**
   * @brief  This function send sdio request.
   * @brief  This function send sdio request.
-  * @param  sdio  rthw_sdio
+  * @param  host  rt_mmcsd_host
   * @param  req   request
   * @param  req   request
   * @retval None
   * @retval None
   */
   */
@@ -525,11 +525,11 @@ void rthw_sdio_irq_update(struct rt_mmcsd_host *host, rt_int32_t enable)
 }
 }
 
 
 /**
 /**
-  * @brief  This function delect sdcard.
+  * @brief  This function detect sdcard.
   * @param  host    rt_mmcsd_host
   * @param  host    rt_mmcsd_host
   * @retval 0x01
   * @retval 0x01
   */
   */
-static rt_int32_t rthw_sd_delect(struct rt_mmcsd_host *host)
+static rt_int32_t rthw_sd_detect(struct rt_mmcsd_host *host)
 {
 {
     LOG_D("try to detect device");
     LOG_D("try to detect device");
     return 0x01;
     return 0x01;
@@ -605,7 +605,7 @@ static const struct rt_mmcsd_host_ops ops =
 {
 {
     rthw_sdio_request,
     rthw_sdio_request,
     rthw_sdio_iocfg,
     rthw_sdio_iocfg,
-    rthw_sd_delect,
+    rthw_sd_detect,
     rthw_sdio_irq_update,
     rthw_sdio_irq_update,
 };
 };