Merged in david_s5/nuttx/upstream_kinetis (pull request #243)
Ensure interrups are back on BEFORE running code dependant on clock_systimer Approved-by: Gregory Nutt
This commit is contained in:
commit
45ccf0cb79
@ -2916,6 +2916,8 @@ void sdhc_mediachange(FAR struct sdio_dev_s *dev, bool cardinslot)
|
|||||||
priv->cdstatus &= ~SDIO_STATUS_PRESENT;
|
priv->cdstatus &= ~SDIO_STATUS_PRESENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
leave_critical_section(flags);
|
||||||
|
|
||||||
mcinfo("cdstatus OLD: %02x NEW: %02x\n", cdstatus, priv->cdstatus);
|
mcinfo("cdstatus OLD: %02x NEW: %02x\n", cdstatus, priv->cdstatus);
|
||||||
|
|
||||||
/* Perform any requested callback if the status has changed */
|
/* Perform any requested callback if the status has changed */
|
||||||
@ -2924,8 +2926,6 @@ void sdhc_mediachange(FAR struct sdio_dev_s *dev, bool cardinslot)
|
|||||||
{
|
{
|
||||||
kinetis_callback(priv);
|
kinetis_callback(priv);
|
||||||
}
|
}
|
||||||
|
|
||||||
leave_critical_section(flags);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user