stm32l4xx_hal_sd_ex.c 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550
  1. /**
  2. ******************************************************************************
  3. * @file stm32l4xx_hal_sd_ex.c
  4. * @author MCD Application Team
  5. * @brief SD card Extended HAL module driver.
  6. * This file provides firmware functions to manage the following
  7. * functionalities of the Secure Digital (SD) peripheral:
  8. * + Extended features functions
  9. *
  10. @verbatim
  11. ==============================================================================
  12. ##### How to use this driver #####
  13. ==============================================================================
  14. [..]
  15. The SD Extension HAL driver can be used as follows:
  16. (+) Set card in High Speed mode using HAL_SDEx_HighSpeed() function.
  17. (+) Configure Buffer0 and Buffer1 start address and Buffer size using HAL_SDEx_ConfigDMAMultiBuffer() function.
  18. (+) Start Read and Write for multibuffer mode using HAL_SDEx_ReadBlocksDMAMultiBuffer() and HAL_SDEx_WriteBlocksDMAMultiBuffer() functions.
  19. @endverbatim
  20. ******************************************************************************
  21. * @attention
  22. *
  23. * <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
  24. *
  25. * Redistribution and use in source and binary forms, with or without modification,
  26. * are permitted provided that the following conditions are met:
  27. * 1. Redistributions of source code must retain the above copyright notice,
  28. * this list of conditions and the following disclaimer.
  29. * 2. Redistributions in binary form must reproduce the above copyright notice,
  30. * this list of conditions and the following disclaimer in the documentation
  31. * and/or other materials provided with the distribution.
  32. * 3. Neither the name of STMicroelectronics nor the names of its contributors
  33. * may be used to endorse or promote products derived from this software
  34. * without specific prior written permission.
  35. *
  36. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  37. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  38. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  39. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  40. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  41. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  42. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  43. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  44. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  45. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  46. *
  47. ******************************************************************************
  48. */
  49. /* Includes ------------------------------------------------------------------*/
  50. #include "stm32l4xx_hal.h"
  51. #if defined(STM32L4R5xx) || defined(STM32L4R7xx) || defined(STM32L4R9xx) || defined(STM32L4S5xx) || defined(STM32L4S7xx) || defined(STM32L4S9xx)
  52. /** @addtogroup STM32L4xx_HAL_Driver
  53. * @{
  54. */
  55. /** @defgroup SDEx SDEx
  56. * @brief SD HAL extended module driver
  57. * @{
  58. */
  59. #ifdef HAL_SD_MODULE_ENABLED
  60. /* Private typedef -----------------------------------------------------------*/
  61. /* Private define ------------------------------------------------------------*/
  62. /* Private macro -------------------------------------------------------------*/
  63. /* Private variables ---------------------------------------------------------*/
  64. /* Private function prototypes -----------------------------------------------*/
  65. /* Private functions ---------------------------------------------------------*/
  66. /* Exported functions --------------------------------------------------------*/
  67. /** @addtogroup SDEx_Exported_Functions
  68. * @{
  69. */
  70. /** @addtogroup SDEx_Exported_Functions_Group1
  71. * @brief High Speed function
  72. *
  73. @verbatim
  74. ==============================================================================
  75. ##### High Speed function #####
  76. ==============================================================================
  77. [..]
  78. This section provides function allowing to configure the card in High Speed mode.
  79. @endverbatim
  80. * @{
  81. */
  82. /**
  83. * @brief Switches the SD card to High Speed mode.
  84. * This API must be used after "Transfer State"
  85. * @note This operation should be followed by the configuration
  86. * of PLL to have SDMMCCK clock between 50 and 120 MHz
  87. * @param hsd: SD handle
  88. * @retval SD Card error state
  89. */
  90. uint32_t HAL_SDEx_HighSpeed(SD_HandleTypeDef *hsd)
  91. {
  92. uint32_t errorstate = HAL_OK;
  93. SDMMC_DataInitTypeDef sdmmc_datainitstructure;
  94. uint8_t SD_hs[64] = {0};
  95. uint32_t count = 0, *tempbuff = (uint32_t *)SD_hs;
  96. uint32_t Timeout = HAL_GetTick();
  97. if(hsd->SdCard.CardSpeed == CARD_NORMAL_SPEED)
  98. {
  99. /* Standard Speed Card <= 12.5Mhz */
  100. return HAL_SD_ERROR_REQUEST_NOT_APPLICABLE;
  101. }
  102. if((hsd->SdCard.CardSpeed == CARD_ULTRA_HIGH_SPEED) &&
  103. (hsd->Init.Transceiver == SDMMC_TRANSCEIVER_ENABLE))
  104. {
  105. /* Initialize the Data control register */
  106. hsd->Instance->DCTRL = 0;
  107. errorstate = SDMMC_CmdBlockLength(hsd->Instance, 64);
  108. if (errorstate != HAL_OK)
  109. {
  110. return errorstate;
  111. }
  112. /* Configure the SD DPSM (Data Path State Machine) */
  113. sdmmc_datainitstructure.DataTimeOut = SDMMC_DATATIMEOUT;
  114. sdmmc_datainitstructure.DataLength = 64;
  115. sdmmc_datainitstructure.DataBlockSize = SDMMC_DATABLOCK_SIZE_64B ;
  116. sdmmc_datainitstructure.TransferDir = SDMMC_TRANSFER_DIR_TO_SDMMC;
  117. sdmmc_datainitstructure.TransferMode = SDMMC_TRANSFER_MODE_BLOCK;
  118. sdmmc_datainitstructure.DPSM = SDMMC_DPSM_ENABLE;
  119. SDMMC_ConfigData(hsd->Instance, &sdmmc_datainitstructure);
  120. errorstate = SDMMC_CmdSwitch(hsd->Instance, SDMMC_SDR25_SWITCH_PATTERN);
  121. if(errorstate != HAL_OK)
  122. {
  123. return errorstate;
  124. }
  125. while(!__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXOVERR | SDMMC_FLAG_DCRCFAIL | SDMMC_FLAG_DTIMEOUT | SDMMC_FLAG_DBCKEND| SDMMC_FLAG_DATAEND ))
  126. {
  127. if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXFIFOHF))
  128. {
  129. for (count = 0; count < 8; count++)
  130. {
  131. *(tempbuff + count) = SDMMC_ReadFIFO(hsd->Instance);
  132. }
  133. tempbuff += 8;
  134. }
  135. if((HAL_GetTick()-Timeout) >= SDMMC_DATATIMEOUT)
  136. {
  137. hsd->ErrorCode = HAL_SD_ERROR_TIMEOUT;
  138. hsd->State= HAL_SD_STATE_READY;
  139. return HAL_TIMEOUT;
  140. }
  141. }
  142. if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DTIMEOUT))
  143. {
  144. __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_DTIMEOUT);
  145. errorstate = 0;
  146. return errorstate;
  147. }
  148. else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_DCRCFAIL))
  149. {
  150. __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_DCRCFAIL);
  151. errorstate = SDMMC_ERROR_DATA_CRC_FAIL;
  152. return errorstate;
  153. }
  154. else if (__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXOVERR))
  155. {
  156. __HAL_SD_CLEAR_FLAG(hsd, SDMMC_FLAG_RXOVERR);
  157. errorstate = SDMMC_ERROR_RX_OVERRUN;
  158. return errorstate;
  159. }
  160. else
  161. {
  162. /* No error flag set */
  163. }
  164. /* Clear all the static flags */
  165. __HAL_SD_CLEAR_FLAG(hsd, SDMMC_STATIC_DATA_FLAGS);
  166. /* Test if the switch mode HS is ok */
  167. if ((SD_hs[13]& 2) != 2)
  168. {
  169. errorstate = SDMMC_ERROR_UNSUPPORTED_FEATURE;
  170. }
  171. else
  172. {
  173. HAL_SDEx_DriveTransceiver_1_8V_Callback(SET);
  174. }
  175. /* Set Block Size for Card */
  176. errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE);
  177. if(errorstate != HAL_SD_ERROR_NONE)
  178. {
  179. hsd->State = HAL_SD_STATE_READY;
  180. hsd->ErrorCode |= errorstate;
  181. return HAL_ERROR;
  182. }
  183. }
  184. return errorstate;
  185. }
  186. /**
  187. * @brief Enable/Disable the SD Transciver 1.8V Mode Callback.
  188. * @param status: Voltage Switch State
  189. * @retval None
  190. */
  191. __weak void HAL_SDEx_DriveTransceiver_1_8V_Callback(FlagStatus status)
  192. {
  193. /* Prevent unused argument(s) compilation warning */
  194. UNUSED(status);
  195. /* NOTE : This function Should not be modified, when the callback is needed,
  196. the HAL_SD_EnableTransciver could be implemented in the user file
  197. */
  198. }
  199. /**
  200. * @}
  201. */
  202. /** @addtogroup SDEx_Exported_Functions_Group2
  203. * @brief Multibuffer functions
  204. *
  205. @verbatim
  206. ==============================================================================
  207. ##### Multibuffer functions #####
  208. ==============================================================================
  209. [..]
  210. This section provides functions allowing to configure the multibuffer mode and start read and write
  211. multibuffer mode for SD HAL driver.
  212. @endverbatim
  213. * @{
  214. */
  215. /**
  216. * @brief Configure DMA Dual Buffer mode. The Data transfer is managed by an Internal DMA.
  217. * @param hsd: SD handle
  218. * @param pDataBuffer0: Pointer to the buffer0 that will contain/receive the transfered data
  219. * @param pDataBuffer1: Pointer to the buffer1 that will contain/receive the transfered data
  220. * @param BufferSize: Size of Buffer0 in Blocks. Buffer0 and Buffer1 must have the same size.
  221. * @retval HAL status
  222. */
  223. HAL_StatusTypeDef HAL_SDEx_ConfigDMAMultiBuffer(SD_HandleTypeDef *hsd, uint32_t *pDataBuffer0, uint32_t *pDataBuffer1, uint32_t BufferSize)
  224. {
  225. if(hsd->State == HAL_SD_STATE_READY)
  226. {
  227. hsd->Instance->IDMABASE0 = (uint32_t) pDataBuffer0;
  228. hsd->Instance->IDMABASE1 = (uint32_t) pDataBuffer1;
  229. hsd->Instance->IDMABSIZE = (uint32_t) (BLOCKSIZE * BufferSize);
  230. return HAL_OK;
  231. }
  232. else
  233. {
  234. return HAL_BUSY;
  235. }
  236. }
  237. /**
  238. * @brief Reads block(s) from a specified address in a card. The received Data will be stored in Buffer0 and Buffer1.
  239. * Buffer0, Buffer1 and BufferSize need to be configured by function HAL_SDEx_ConfigDMAMultiBuffer before call this function.
  240. * @param hsd: SD handle
  241. * @param BlockAdd: Block Address from where data is to be read
  242. * @param NumberOfBlocks: Total number of blocks to read
  243. * @retval HAL status
  244. */
  245. HAL_StatusTypeDef HAL_SDEx_ReadBlocksDMAMultiBuffer(SD_HandleTypeDef *hsd, uint32_t BlockAdd, uint32_t NumberOfBlocks)
  246. {
  247. SDMMC_DataInitTypeDef config;
  248. uint32_t errorstate = HAL_SD_ERROR_NONE;
  249. if(hsd->State == HAL_SD_STATE_READY)
  250. {
  251. if((BlockAdd + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr))
  252. {
  253. hsd->ErrorCode |= HAL_SD_ERROR_ADDR_OUT_OF_RANGE;
  254. return HAL_ERROR;
  255. }
  256. if ((hsd->Instance->IDMABASE0 == 0) || (hsd->Instance->IDMABASE1 == 0) || (hsd->Instance->IDMABSIZE == 0))
  257. {
  258. hsd->ErrorCode = HAL_SD_ERROR_ADDR_OUT_OF_RANGE;
  259. return HAL_ERROR;
  260. }
  261. /* Initialize data control register */
  262. hsd->Instance->DCTRL = 0;
  263. hsd->ErrorCode = HAL_SD_ERROR_NONE;
  264. hsd->State = HAL_SD_STATE_BUSY;
  265. if(hsd->SdCard.CardType != CARD_SDHC_SDXC)
  266. {
  267. BlockAdd *= 512;
  268. }
  269. /* Configure the SD DPSM (Data Path State Machine) */
  270. config.DataTimeOut = SDMMC_DATATIMEOUT;
  271. config.DataLength = BLOCKSIZE * NumberOfBlocks;
  272. config.DataBlockSize = SDMMC_DATABLOCK_SIZE_512B;
  273. config.TransferDir = SDMMC_TRANSFER_DIR_TO_SDMMC;
  274. config.TransferMode = SDMMC_TRANSFER_MODE_BLOCK;
  275. config.DPSM = SDMMC_DPSM_DISABLE;
  276. SDMMC_ConfigData(hsd->Instance, &config);
  277. hsd->Instance->DCTRL |= SDMMC_DCTRL_FIFORST;
  278. // /* Set Block Size for Card */
  279. // errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE);
  280. // if(errorstate != HAL_SD_ERROR_NONE)
  281. // {
  282. // hsd->State = HAL_SD_STATE_READY;
  283. // hsd->ErrorCode |= errorstate;
  284. // return HAL_ERROR;
  285. // }
  286. __SDMMC_CMDTRANS_ENABLE( hsd->Instance);
  287. hsd->Instance->IDMACTRL = SDMMC_ENABLE_IDMA_DOUBLE_BUFF0;
  288. __HAL_SD_ENABLE_IT(hsd, (SDMMC_IT_DCRCFAIL | SDMMC_IT_DTIMEOUT | SDMMC_IT_RXOVERR | SDMMC_IT_DATAEND | SDMMC_IT_IDMABTC));
  289. /* Read Blocks in DMA mode */
  290. hsd->Context = (SD_CONTEXT_READ_MULTIPLE_BLOCK | SD_CONTEXT_DMA);
  291. /* Read Multi Block command */
  292. errorstate = SDMMC_CmdReadMultiBlock(hsd->Instance, BlockAdd);
  293. if(errorstate != HAL_SD_ERROR_NONE)
  294. {
  295. hsd->State = HAL_SD_STATE_READY;
  296. hsd->ErrorCode |= errorstate;
  297. return HAL_ERROR;
  298. }
  299. return HAL_OK;
  300. }
  301. else
  302. {
  303. return HAL_BUSY;
  304. }
  305. }
  306. /**
  307. * @brief Write block(s) to a specified address in a card. The transfered Data are stored in Buffer0 and Buffer1.
  308. * Buffer0, Buffer1 and BufferSize need to be configured by function HAL_SDEx_ConfigDMAMultiBuffer before call this function.
  309. * @param hsd: SD handle
  310. * @param BlockAdd: Block Address from where data is to be read
  311. * @param NumberOfBlocks: Total number of blocks to read
  312. * @retval HAL status
  313. */
  314. HAL_StatusTypeDef HAL_SDEx_WriteBlocksDMAMultiBuffer(SD_HandleTypeDef *hsd, uint32_t BlockAdd, uint32_t NumberOfBlocks)
  315. {
  316. SDMMC_DataInitTypeDef config;
  317. uint32_t errorstate = HAL_SD_ERROR_NONE;
  318. if(hsd->State == HAL_SD_STATE_READY)
  319. {
  320. if((BlockAdd + NumberOfBlocks) > (hsd->SdCard.LogBlockNbr))
  321. {
  322. hsd->ErrorCode |= HAL_SD_ERROR_ADDR_OUT_OF_RANGE;
  323. return HAL_ERROR;
  324. }
  325. if ((hsd->Instance->IDMABASE0 == 0) || (hsd->Instance->IDMABASE1 == 0) || (hsd->Instance->IDMABSIZE == 0))
  326. {
  327. hsd->ErrorCode = HAL_SD_ERROR_ADDR_OUT_OF_RANGE;
  328. return HAL_ERROR;
  329. }
  330. /* Initialize data control register */
  331. hsd->Instance->DCTRL = 0;
  332. hsd->ErrorCode = HAL_SD_ERROR_NONE;
  333. hsd->State = HAL_SD_STATE_BUSY;
  334. if(hsd->SdCard.CardType != CARD_SDHC_SDXC)
  335. {
  336. BlockAdd *= 512;
  337. }
  338. /* Configure the SD DPSM (Data Path State Machine) */
  339. config.DataTimeOut = SDMMC_DATATIMEOUT;
  340. config.DataLength = BLOCKSIZE * NumberOfBlocks;
  341. config.DataBlockSize = SDMMC_DATABLOCK_SIZE_512B;
  342. config.TransferDir = SDMMC_TRANSFER_DIR_TO_CARD;
  343. config.TransferMode = SDMMC_TRANSFER_MODE_BLOCK;
  344. config.DPSM = SDMMC_DPSM_DISABLE;
  345. SDMMC_ConfigData(hsd->Instance, &config);
  346. // /* Set Block Size for Card */
  347. // errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE);
  348. // if(errorstate != HAL_SD_ERROR_NONE)
  349. // {
  350. // hsd->State = HAL_SD_STATE_READY;
  351. // hsd->ErrorCode |= errorstate;
  352. // return HAL_ERROR;
  353. // }
  354. __SDMMC_CMDTRANS_ENABLE( hsd->Instance);
  355. hsd->Instance->IDMACTRL = SDMMC_ENABLE_IDMA_DOUBLE_BUFF0;
  356. __HAL_SD_ENABLE_IT(hsd, (SDMMC_IT_DCRCFAIL | SDMMC_IT_DTIMEOUT | SDMMC_IT_TXUNDERR | SDMMC_IT_DATAEND | SDMMC_IT_IDMABTC));
  357. /* Write Blocks in DMA mode */
  358. hsd->Context = (SD_CONTEXT_WRITE_MULTIPLE_BLOCK | SD_CONTEXT_DMA);
  359. /* Write Multi Block command */
  360. errorstate = SDMMC_CmdWriteMultiBlock(hsd->Instance, BlockAdd);
  361. if(errorstate != HAL_SD_ERROR_NONE)
  362. {
  363. hsd->State = HAL_SD_STATE_READY;
  364. hsd->ErrorCode |= errorstate;
  365. return HAL_ERROR;
  366. }
  367. return HAL_OK;
  368. }
  369. else
  370. {
  371. return HAL_BUSY;
  372. }
  373. }
  374. /**
  375. * @brief Change the DMA Buffer0 or Buffer1 address on the fly.
  376. * @param hsd: pointer to a SD_HandleTypeDef structure.
  377. * @param Buffer: the buffer to be changed, This parameter can be one of
  378. * the following values: SD_DMA_BUFFER0 or SD_DMA_BUFFER1
  379. * @param pDataBuffer: The new address
  380. * @note The BUFFER0 address can be changed only when the current transfer use
  381. * BUFFER1 and the BUFFER1 address can be changed only when the current
  382. * transfer use BUFFER0.
  383. * @retval HAL status
  384. */
  385. HAL_StatusTypeDef HAL_SDEx_ChangeDMABuffer(SD_HandleTypeDef *hsd, HAL_SDEx_DMABuffer_MemoryTypeDef Buffer, uint32_t *pDataBuffer)
  386. {
  387. if(Buffer == SD_DMA_BUFFER0)
  388. {
  389. /* change the buffer0 address */
  390. hsd->Instance->IDMABASE0 = (uint32_t)pDataBuffer;
  391. }
  392. else
  393. {
  394. /* change the memory1 address */
  395. hsd->Instance->IDMABASE1 = (uint32_t)pDataBuffer;
  396. }
  397. return HAL_OK;
  398. }
  399. /**
  400. * @brief Read DMA Buffer 0 Transfer completed callbacks
  401. * @param hsd: SD handle
  402. * @retval None
  403. */
  404. __weak void HAL_SDEx_Read_DMADoubleBuffer0CpltCallback(SD_HandleTypeDef *hsd)
  405. {
  406. /* Prevent unused argument(s) compilation warning */
  407. UNUSED(hsd);
  408. /* NOTE : This function should not be modified, when the callback is needed,
  409. the HAL_SDEx_Read_DMADoubleBuffer0CpltCallback can be implemented in the user file
  410. */
  411. }
  412. /**
  413. * @brief Read DMA Buffer 1 Transfer completed callbacks
  414. * @param hsd: SD handle
  415. * @retval None
  416. */
  417. __weak void HAL_SDEx_Read_DMADoubleBuffer1CpltCallback(SD_HandleTypeDef *hsd)
  418. {
  419. /* Prevent unused argument(s) compilation warning */
  420. UNUSED(hsd);
  421. /* NOTE : This function should not be modified, when the callback is needed,
  422. the HAL_SDEx_Read_DMADoubleBuffer1CpltCallback can be implemented in the user file
  423. */
  424. }
  425. /**
  426. * @brief Write DMA Buffer 0 Transfer completed callbacks
  427. * @param hsd: SD handle
  428. * @retval None
  429. */
  430. __weak void HAL_SDEx_Write_DMADoubleBuffer0CpltCallback(SD_HandleTypeDef *hsd)
  431. {
  432. /* Prevent unused argument(s) compilation warning */
  433. UNUSED(hsd);
  434. /* NOTE : This function should not be modified, when the callback is needed,
  435. the HAL_SDEx_Write_DMADoubleBuffer0CpltCallback can be implemented in the user file
  436. */
  437. }
  438. /**
  439. * @brief Write DMA Buffer 1 Transfer completed callbacks
  440. * @param hsd: SD handle
  441. * @retval None
  442. */
  443. __weak void HAL_SDEx_Write_DMADoubleBuffer1CpltCallback(SD_HandleTypeDef *hsd)
  444. {
  445. /* Prevent unused argument(s) compilation warning */
  446. UNUSED(hsd);
  447. /* NOTE : This function should not be modified, when the callback is needed,
  448. the HAL_SDEx_Write_DMADoubleBuffer0CpltCallback can be implemented in the user file
  449. */
  450. }
  451. /**
  452. * @}
  453. */
  454. /**
  455. * @}
  456. */
  457. #endif /* HAL_SD_MODULE_ENABLED */
  458. /**
  459. * @}
  460. */
  461. /**
  462. * @}
  463. */
  464. #endif /* STM32L4R5xx || STM32L4R7xx || STM32L4R9xx || STM32L4S5xx || STM32L4S7xx || STM32L4S9xx */
  465. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/