/hal_stm32-3.5.0/stm32cube/stm32l5xx/drivers/src/ |
D | stm32l5xx_hal_mmc.c | 427 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 …]
|
D | stm32l5xx_hal_sd.c | 471 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 …]
|
D | stm32l5xx_ll_sdmmc.c | 516 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.5.0/stm32cube/stm32u5xx/drivers/src/ |
D | stm32u5xx_hal_mmc.c | 425 uint32_t errorstate; in HAL_MMC_InitCard() local 468 errorstate = MMC_PowerON(hmmc); in HAL_MMC_InitCard() 469 if (errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard() 472 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard() 477 errorstate = MMC_InitCard(hmmc); in HAL_MMC_InitCard() 478 if (errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard() 481 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard() 486 errorstate = SDMMC_CmdBlockLength(hmmc->Instance, MMC_BLOCKSIZE); in HAL_MMC_InitCard() 487 if (errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard() 491 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard() [all …]
|
D | stm32u5xx_hal_sd.c | 468 uint32_t errorstate; in HAL_SD_InitCard() local 520 errorstate = SD_PowerON(hsd); in HAL_SD_InitCard() 521 if (errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard() 524 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard() 529 errorstate = SD_InitCard(hsd); in HAL_SD_InitCard() 530 if (errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard() 533 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard() 538 errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE); in HAL_SD_InitCard() 539 if (errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard() 543 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard() [all …]
|
D | stm32u5xx_ll_sdmmc.c | 517 uint32_t errorstate; in SDMMC_CmdBlockLength() local 528 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_SET_BLOCKLEN, SDMMC_CMDTIMEOUT); in SDMMC_CmdBlockLength() 530 return errorstate; in SDMMC_CmdBlockLength() 541 uint32_t errorstate; in SDMMC_CmdReadSingleBlock() local 552 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_READ_SINGLE_BLOCK, SDMMC_CMDTIMEOUT); in SDMMC_CmdReadSingleBlock() 554 return errorstate; in SDMMC_CmdReadSingleBlock() 565 uint32_t errorstate; in SDMMC_CmdReadMultiBlock() local 576 errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_READ_MULT_BLOCK, SDMMC_CMDTIMEOUT); in SDMMC_CmdReadMultiBlock() 578 return errorstate; in SDMMC_CmdReadMultiBlock() 589 uint32_t errorstate; in SDMMC_CmdWriteSingleBlock() local [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32h7xx/drivers/src/ |
D | stm32h7xx_hal_mmc.c | 427 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 …]
|
D | stm32h7xx_hal_sd.c | 471 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 …]
|
D | stm32h7xx_ll_sdmmc.c | 516 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.5.0/stm32cube/stm32h5xx/drivers/src/ |
D | stm32h5xx_hal_mmc.c | 424 uint32_t errorstate; in HAL_MMC_InitCard() local 480 errorstate = MMC_PowerON(hmmc); in HAL_MMC_InitCard() 481 if (errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard() 484 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard() 489 errorstate = MMC_InitCard(hmmc); in HAL_MMC_InitCard() 490 if (errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard() 493 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard() 498 errorstate = SDMMC_CmdBlockLength(hmmc->Instance, MMC_BLOCKSIZE); in HAL_MMC_InitCard() 499 if (errorstate != HAL_MMC_ERROR_NONE) in HAL_MMC_InitCard() 503 hmmc->ErrorCode |= errorstate; in HAL_MMC_InitCard() [all …]
|
D | stm32h5xx_hal_sd.c | 468 uint32_t errorstate; in HAL_SD_InitCard() local 529 errorstate = SD_PowerON(hsd); in HAL_SD_InitCard() 530 if (errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard() 533 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard() 538 errorstate = SD_InitCard(hsd); in HAL_SD_InitCard() 539 if (errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard() 542 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard() 547 errorstate = SDMMC_CmdBlockLength(hsd->Instance, BLOCKSIZE); in HAL_SD_InitCard() 548 if (errorstate != HAL_SD_ERROR_NONE) in HAL_SD_InitCard() 552 hsd->ErrorCode |= errorstate; in HAL_SD_InitCard() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32l4xx/drivers/src/ |
D | stm32l4xx_hal_mmc.c | 456 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 …]
|
D | stm32l4xx_hal_sd.c | 486 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 …]
|
D | stm32l4xx_ll_sdmmc.c | 551 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.5.0/stm32cube/stm32mp1xx/drivers/src/ |
D | stm32mp1xx_hal_sd.c | 434 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 …]
|
D | stm32mp1xx_ll_sdmmc.c | 525 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.5.0/stm32cube/stm32f2xx/drivers/src/ |
D | stm32f2xx_hal_sd.c | 405 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 …]
|
D | stm32f2xx_ll_sdmmc.c | 512 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.5.0/stm32cube/stm32l1xx/drivers/src/ |
D | stm32l1xx_hal_sd.c | 405 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 …]
|
D | stm32l1xx_ll_sdmmc.c | 512 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.5.0/stm32cube/stm32f7xx/drivers/src/ |
D | stm32f7xx_hal_sd.c | 405 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 …]
|
D | stm32f7xx_ll_sdmmc.c | 512 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 …]
|
/hal_stm32-3.5.0/stm32cube/stm32f1xx/drivers/src/ |
D | stm32f1xx_hal_sd.c | 405 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.5.0/stm32cube/stm32f4xx/drivers/src/ |
D | stm32f4xx_hal_sd.c | 405 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 …]
|
D | stm32f4xx_ll_sdmmc.c | 512 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 …]
|