Home
last modified time | relevance | path

Searched refs:errorstate (Results 1 – 25 of 42) sorted by relevance

12

/hal_stm32-3.4.0/stm32cube/stm32l5xx/drivers/src/
Dstm32l5xx_hal_mmc.c427 uint32_t errorstate; in HAL_MMC_InitCard() local
463 errorstate = MMC_PowerON(hmmc); in HAL_MMC_InitCard()
464 if (errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard()
467 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard()
472 errorstate = MMC_InitCard(hmmc); in HAL_MMC_InitCard()
473 if (errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard()
476 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard()
481 errorstate = SDMMC_CmdBlockLength(hmmc->Instance, MMC_BLOCKSIZE); in HAL_MMC_InitCard()
482 if (errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard()
486 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard()
[all …]
Dstm32l5xx_hal_sd.c471 uint32_t errorstate; in HAL_SD_InitCard() local
516 errorstate = SD_PowerON(hsd); in HAL_SD_InitCard()
517 if (errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
520 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
525 errorstate = SD_InitCard(hsd); in HAL_SD_InitCard()
526 if (errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
529 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
534 errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE); in HAL_SD_InitCard()
535 if (errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
539 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
[all …]
Dstm32l5xx_ll_sdmmc.c516 uint32_t errorstate; in SDMMC_CmdBlockLength() local
527 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_SET_BLOCKLEN, SDMMC_CMDTIMEOUT); in SDMMC_CmdBlockLength()
529 return errorstate; in SDMMC_CmdBlockLength()
540 uint32_t errorstate; in SDMMC_CmdReadSingleBlock() local
551 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_READ_SINGLE_BLOCK, SDMMC_CMDTIMEOUT); in SDMMC_CmdReadSingleBlock()
553 return errorstate; in SDMMC_CmdReadSingleBlock()
564 uint32_t errorstate; in SDMMC_CmdReadMultiBlock() local
575 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_READ_MULT_BLOCK, SDMMC_CMDTIMEOUT); in SDMMC_CmdReadMultiBlock()
577 return errorstate; in SDMMC_CmdReadMultiBlock()
588 uint32_t errorstate; in SDMMC_CmdWriteSingleBlock() local
[all …]
/hal_stm32-3.4.0/stm32cube/stm32u5xx/drivers/src/
Dstm32u5xx_hal_mmc.c423 uint32_t errorstate; in HAL_MMC_InitCard() local
466 errorstate = MMC_PowerON(hmmc); in HAL_MMC_InitCard()
467 if (errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard()
470 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard()
475 errorstate = MMC_InitCard(hmmc); in HAL_MMC_InitCard()
476 if (errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard()
479 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard()
484 errorstate = SDMMC_CmdBlockLength(hmmc->Instance, MMC_BLOCKSIZE); in HAL_MMC_InitCard()
485 if (errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard()
489 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard()
[all …]
Dstm32u5xx_hal_sd.c467 uint32_t errorstate; in HAL_SD_InitCard() local
519 errorstate = SD_PowerON(hsd); in HAL_SD_InitCard()
520 if (errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
523 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
528 errorstate = SD_InitCard(hsd); in HAL_SD_InitCard()
529 if (errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
532 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
537 errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE); in HAL_SD_InitCard()
538 if (errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
542 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
[all …]
Dstm32u5xx_ll_sdmmc.c516 uint32_t errorstate; in SDMMC_CmdBlockLength() local
527 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_SET_BLOCKLEN, SDMMC_CMDTIMEOUT); in SDMMC_CmdBlockLength()
529 return errorstate; in SDMMC_CmdBlockLength()
540 uint32_t errorstate; in SDMMC_CmdReadSingleBlock() local
551 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_READ_SINGLE_BLOCK, SDMMC_CMDTIMEOUT); in SDMMC_CmdReadSingleBlock()
553 return errorstate; in SDMMC_CmdReadSingleBlock()
564 uint32_t errorstate; in SDMMC_CmdReadMultiBlock() local
575 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_READ_MULT_BLOCK, SDMMC_CMDTIMEOUT); in SDMMC_CmdReadMultiBlock()
577 return errorstate; in SDMMC_CmdReadMultiBlock()
588 uint32_t errorstate; in SDMMC_CmdWriteSingleBlock() local
[all …]
/hal_stm32-3.4.0/stm32cube/stm32h7xx/drivers/src/
Dstm32h7xx_hal_mmc.c427 uint32_t errorstate; in HAL_MMC_InitCard() local
470 errorstate = MMC_PowerON(hmmc); in HAL_MMC_InitCard()
471 if (errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard()
474 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard()
479 errorstate = MMC_InitCard(hmmc); in HAL_MMC_InitCard()
480 if (errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard()
483 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard()
488 errorstate = SDMMC_CmdBlockLength(hmmc->Instance, MMC_BLOCKSIZE); in HAL_MMC_InitCard()
489 if (errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard()
493 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard()
[all …]
Dstm32h7xx_hal_sd.c471 uint32_t errorstate; in HAL_SD_InitCard() local
523 errorstate = SD_PowerON(hsd); in HAL_SD_InitCard()
524 if (errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
527 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
532 errorstate = SD_InitCard(hsd); in HAL_SD_InitCard()
533 if (errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
536 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
541 errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE); in HAL_SD_InitCard()
542 if (errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
546 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
[all …]
Dstm32h7xx_ll_sdmmc.c516 uint32_t errorstate; in SDMMC_CmdBlockLength() local
527 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_SET_BLOCKLEN, SDMMC_CMDTIMEOUT); in SDMMC_CmdBlockLength()
529 return errorstate; in SDMMC_CmdBlockLength()
540 uint32_t errorstate; in SDMMC_CmdReadSingleBlock() local
551 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_READ_SINGLE_BLOCK, SDMMC_CMDTIMEOUT); in SDMMC_CmdReadSingleBlock()
553 return errorstate; in SDMMC_CmdReadSingleBlock()
564 uint32_t errorstate; in SDMMC_CmdReadMultiBlock() local
575 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_READ_MULT_BLOCK, SDMMC_CMDTIMEOUT); in SDMMC_CmdReadMultiBlock()
577 return errorstate; in SDMMC_CmdReadMultiBlock()
588 uint32_t errorstate; in SDMMC_CmdWriteSingleBlock() local
[all …]
/hal_stm32-3.4.0/stm32cube/stm32h5xx/drivers/src/
Dstm32h5xx_hal_mmc.c423 uint32_t errorstate; in HAL_MMC_InitCard() local
479 errorstate = MMC_PowerON(hmmc); in HAL_MMC_InitCard()
480 if (errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard()
483 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard()
488 errorstate = MMC_InitCard(hmmc); in HAL_MMC_InitCard()
489 if (errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard()
492 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard()
497 errorstate = SDMMC_CmdBlockLength(hmmc->Instance, MMC_BLOCKSIZE); in HAL_MMC_InitCard()
498 if (errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard()
502 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard()
[all …]
Dstm32h5xx_hal_sd.c467 uint32_t errorstate; in HAL_SD_InitCard() local
528 errorstate = SD_PowerON(hsd); in HAL_SD_InitCard()
529 if (errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
532 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
537 errorstate = SD_InitCard(hsd); in HAL_SD_InitCard()
538 if (errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
541 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
546 errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE); in HAL_SD_InitCard()
547 if (errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
551 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
[all …]
Dstm32h5xx_ll_sdmmc.c516 uint32_t errorstate; in SDMMC_CmdBlockLength() local
527 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_SET_BLOCKLEN, SDMMC_CMDTIMEOUT); in SDMMC_CmdBlockLength()
529 return errorstate; in SDMMC_CmdBlockLength()
540 uint32_t errorstate; in SDMMC_CmdReadSingleBlock() local
551 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_READ_SINGLE_BLOCK, SDMMC_CMDTIMEOUT); in SDMMC_CmdReadSingleBlock()
553 return errorstate; in SDMMC_CmdReadSingleBlock()
564 uint32_t errorstate; in SDMMC_CmdReadMultiBlock() local
575 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_READ_MULT_BLOCK, SDMMC_CMDTIMEOUT); in SDMMC_CmdReadMultiBlock()
577 return errorstate; in SDMMC_CmdReadMultiBlock()
588 uint32_t errorstate; in SDMMC_CmdWriteSingleBlock() local
[all …]
/hal_stm32-3.4.0/stm32cube/stm32l4xx/drivers/src/
Dstm32l4xx_hal_mmc.c456 uint32_t errorstate; in HAL_MMC_InitCard() local
510 errorstate = MMC_PowerON(hmmc); in HAL_MMC_InitCard()
511 if(errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard()
514 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard()
519 errorstate = MMC_InitCard(hmmc); in HAL_MMC_InitCard()
520 if(errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard()
523 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard()
528 errorstate = SDMMC_CmdBlockLength(hmmc->Instance, MMC_BLOCKSIZE); in HAL_MMC_InitCard()
529 if(errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard()
533 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard()
[all …]
Dstm32l4xx_hal_sd.c486 uint32_t errorstate; in HAL_SD_InitCard() local
548 errorstate = SD_PowerON(hsd); in HAL_SD_InitCard()
549 if(errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
552 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
557 errorstate = SD_InitCard(hsd); in HAL_SD_InitCard()
558 if(errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
561 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
566 errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE); in HAL_SD_InitCard()
567 if(errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
571 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
[all …]
Dstm32l4xx_ll_sdmmc.c551 uint32_t errorstate; in SDMMC_CmdBlockLength() local
562 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_SET_BLOCKLEN, SDMMC_CMDTIMEOUT); in SDMMC_CmdBlockLength()
564 return errorstate; in SDMMC_CmdBlockLength()
575 uint32_t errorstate; in SDMMC_CmdReadSingleBlock() local
586 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_READ_SINGLE_BLOCK, SDMMC_CMDTIMEOUT); in SDMMC_CmdReadSingleBlock()
588 return errorstate; in SDMMC_CmdReadSingleBlock()
599 uint32_t errorstate; in SDMMC_CmdReadMultiBlock() local
610 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_READ_MULT_BLOCK, SDMMC_CMDTIMEOUT); in SDMMC_CmdReadMultiBlock()
612 return errorstate; in SDMMC_CmdReadMultiBlock()
623 uint32_t errorstate; in SDMMC_CmdWriteSingleBlock() local
[all …]
/hal_stm32-3.4.0/stm32cube/stm32mp1xx/drivers/src/
Dstm32mp1xx_hal_sd.c434 uint32_t errorstate; in HAL_SD_InitCard() local
465 errorstate = SD_PowerON(hsd); in HAL_SD_InitCard()
466 if(errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
469 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
474 errorstate = SD_InitCard(hsd); in HAL_SD_InitCard()
475 if(errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
478 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
603 uint32_t errorstate; in HAL_SD_ReadBlocks() local
636 errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE); in HAL_SD_ReadBlocks()
637 if(errorstate != HAL_SD_ERROR_NONE) in HAL_SD_ReadBlocks()
[all …]
Dstm32mp1xx_ll_sdmmc.c525 uint32_t errorstate; in SDMMC_CmdBlockLength() local
536 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_SET_BLOCKLEN, SDMMC_CMDTIMEOUT); in SDMMC_CmdBlockLength()
538 return errorstate; in SDMMC_CmdBlockLength()
549 uint32_t errorstate; in SDMMC_CmdReadSingleBlock() local
560 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_READ_SINGLE_BLOCK, SDMMC_CMDTIMEOUT); in SDMMC_CmdReadSingleBlock()
562 return errorstate; in SDMMC_CmdReadSingleBlock()
573 uint32_t errorstate; in SDMMC_CmdReadMultiBlock() local
584 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_READ_MULT_BLOCK, SDMMC_CMDTIMEOUT); in SDMMC_CmdReadMultiBlock()
586 return errorstate; in SDMMC_CmdReadMultiBlock()
597 uint32_t errorstate; in SDMMC_CmdWriteSingleBlock() local
[all …]
/hal_stm32-3.4.0/stm32cube/stm32f7xx/drivers/src/
Dstm32f7xx_hal_sd.c405 uint32_t errorstate; in HAL_SD_InitCard() local
437 errorstate = SD_PowerON(hsd); in HAL_SD_InitCard()
438 if(errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
441 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
446 errorstate = SD_InitCard(hsd); in HAL_SD_InitCard()
447 if(errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
450 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
455 errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE); in HAL_SD_InitCard()
456 if(errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
460 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
[all …]
Dstm32f7xx_ll_sdmmc.c512 uint32_t errorstate; in SDMMC_CmdBlockLength() local
523 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_SET_BLOCKLEN, SDMMC_CMDTIMEOUT); in SDMMC_CmdBlockLength()
525 return errorstate; in SDMMC_CmdBlockLength()
536 uint32_t errorstate; in SDMMC_CmdReadSingleBlock() local
547 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_READ_SINGLE_BLOCK, SDMMC_CMDTIMEOUT); in SDMMC_CmdReadSingleBlock()
549 return errorstate; in SDMMC_CmdReadSingleBlock()
560 uint32_t errorstate; in SDMMC_CmdReadMultiBlock() local
571 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_READ_MULT_BLOCK, SDMMC_CMDTIMEOUT); in SDMMC_CmdReadMultiBlock()
573 return errorstate; in SDMMC_CmdReadMultiBlock()
584 uint32_t errorstate; in SDMMC_CmdWriteSingleBlock() local
[all …]
Dstm32f7xx_hal_mmc.c431 uint32_t errorstate; in HAL_MMC_InitCard() local
467 errorstate = MMC_PowerON(hmmc); in HAL_MMC_InitCard()
468 if(errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard()
471 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard()
476 errorstate = MMC_InitCard(hmmc); in HAL_MMC_InitCard()
477 if(errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard()
480 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard()
485 errorstate = SDMMC_CmdBlockLength(hmmc->Instance, MMC_BLOCKSIZE); in HAL_MMC_InitCard()
486 if(errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard()
490 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard()
[all …]
/hal_stm32-3.4.0/stm32cube/stm32l1xx/drivers/src/
Dstm32l1xx_hal_sd.c405 uint32_t errorstate; in HAL_SD_InitCard() local
434 errorstate = SD_PowerON(hsd); in HAL_SD_InitCard()
435 if(errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
438 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
443 errorstate = SD_InitCard(hsd); in HAL_SD_InitCard()
444 if(errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
447 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
452 errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE); in HAL_SD_InitCard()
453 if(errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
457 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
[all …]
/hal_stm32-3.4.0/stm32cube/stm32f1xx/drivers/src/
Dstm32f1xx_hal_sd.c405 uint32_t errorstate; in HAL_SD_InitCard() local
434 errorstate = SD_PowerON(hsd); in HAL_SD_InitCard()
435 if(errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
438 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
443 errorstate = SD_InitCard(hsd); in HAL_SD_InitCard()
444 if(errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
447 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
452 errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE); in HAL_SD_InitCard()
453 if(errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
457 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
[all …]
/hal_stm32-3.4.0/stm32cube/stm32f4xx/drivers/src/
Dstm32f4xx_hal_sd.c405 uint32_t errorstate; in HAL_SD_InitCard() local
437 errorstate = SD_PowerON(hsd); in HAL_SD_InitCard()
438 if(errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
441 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
446 errorstate = SD_InitCard(hsd); in HAL_SD_InitCard()
447 if(errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
450 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
455 errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE); in HAL_SD_InitCard()
456 if(errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
460 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
[all …]
Dstm32f4xx_ll_sdmmc.c512 uint32_t errorstate; in SDMMC_CmdBlockLength() local
523 errorstate = SDMMC_GetCmdResp1(SDIOx, SDMMC_CMD_SET_BLOCKLEN, SDIO_CMDTIMEOUT); in SDMMC_CmdBlockLength()
525 return errorstate; in SDMMC_CmdBlockLength()
536 uint32_t errorstate; in SDMMC_CmdReadSingleBlock() local
547 errorstate = SDMMC_GetCmdResp1(SDIOx, SDMMC_CMD_READ_SINGLE_BLOCK, SDIO_CMDTIMEOUT); in SDMMC_CmdReadSingleBlock()
549 return errorstate; in SDMMC_CmdReadSingleBlock()
560 uint32_t errorstate; in SDMMC_CmdReadMultiBlock() local
571 errorstate = SDMMC_GetCmdResp1(SDIOx, SDMMC_CMD_READ_MULT_BLOCK, SDIO_CMDTIMEOUT); in SDMMC_CmdReadMultiBlock()
573 return errorstate; in SDMMC_CmdReadMultiBlock()
584 uint32_t errorstate; in SDMMC_CmdWriteSingleBlock() local
[all …]
/hal_stm32-3.4.0/stm32cube/stm32f2xx/drivers/src/
Dstm32f2xx_hal_sd.c405 uint32_t errorstate; in HAL_SD_InitCard() local
434 errorstate = SD_PowerON(hsd); in HAL_SD_InitCard()
435 if(errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
438 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
443 errorstate = SD_InitCard(hsd); in HAL_SD_InitCard()
444 if(errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
447 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
452 errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE); in HAL_SD_InitCard()
453 if(errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard()
457 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard()
[all …]

12