summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9fc5afe)
HSMCI_ARGR = argument;
HSMCI_CMDR = index | reply_type | BV(HSMCI_CMDR_MAXLAT);
HSMCI_ARGR = argument;
HSMCI_CMDR = index | reply_type | BV(HSMCI_CMDR_MAXLAT);
- uint32_t status = HSMCI_SR;
- while (!(status & BV(HSMCI_SR_CMDRDY)))
- {
+ uint32_t status;
+ do {
+ status = HSMCI_SR;
+
if (status & HSMCI_RESP_ERROR_MASK)
return status;
cpu_relax();
if (status & HSMCI_RESP_ERROR_MASK)
return status;
cpu_relax();
+ } while (!(status & BV(HSMCI_SR_CMDRDY)));
#define HSMCI_INIT_SPEED 400000
#define HSMCI_INIT_SPEED 400000
-#define HSMCI_HIGH_SPEED 25000000
+#define HSMCI_HIGH_SPEED 21000000
#define HSMCI_HS_MODE BV(0)
#define HSMCI_HS_MODE BV(0)