Fixed bug 3570035.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_2.4.x@4720 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
4b2c225c04
commit
b6ed629724
|
@ -402,6 +402,7 @@ void mmcStop(MMCDriver *mmcp) {
|
||||||
bool_t mmcConnect(MMCDriver *mmcp) {
|
bool_t mmcConnect(MMCDriver *mmcp) {
|
||||||
unsigned i;
|
unsigned i;
|
||||||
bool_t result;
|
bool_t result;
|
||||||
|
uint8_t r3[4];
|
||||||
|
|
||||||
chDbgCheck(mmcp != NULL, "mmcConnect");
|
chDbgCheck(mmcp != NULL, "mmcConnect");
|
||||||
|
|
||||||
|
@ -430,10 +431,9 @@ bool_t mmcConnect(MMCDriver *mmcp) {
|
||||||
* by ElmChan.
|
* by ElmChan.
|
||||||
*
|
*
|
||||||
* */
|
* */
|
||||||
uint8_t r3[4];
|
if(send_command_R3(mmcp, MMC_CMDINTERFACE_CONDITION, 0x01AA, r3) != 0x05) {
|
||||||
if(send_command_R3(mmcp, MMC_CMDINTERFACE_CONDITION, 0x01AA, r3) != 0x05){
|
|
||||||
|
|
||||||
/* Switch to SDHC mode */
|
/* Switch to SDHC mode.*/
|
||||||
i = 0;
|
i = 0;
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
if ((send_command_R1(mmcp, MMC_CMDAPP, 0) == 0x01) &&
|
if ((send_command_R1(mmcp, MMC_CMDAPP, 0) == 0x01) &&
|
||||||
|
|
|
@ -79,6 +79,8 @@
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
|
|
||||||
*** 2.4.3 ***
|
*** 2.4.3 ***
|
||||||
|
- FIX: Fixed mmc_spi.c won't compile due to misplaced declaration (bug
|
||||||
|
3570035).
|
||||||
- FIX: Fixed GPIO glitch during PAL initialization (bug 3569347).
|
- FIX: Fixed GPIO glitch during PAL initialization (bug 3569347).
|
||||||
- FIX: Fixed STM32F1x rtc_lld_init glitches rtc on hard reset (bug 3567597).
|
- FIX: Fixed STM32F1x rtc_lld_init glitches rtc on hard reset (bug 3567597).
|
||||||
- FIX: Fixed STM8L, cosmic compiler: c_lreg not saved (bug 3566342).
|
- FIX: Fixed STM8L, cosmic compiler: c_lreg not saved (bug 3566342).
|
||||||
|
|
Loading…
Reference in New Issue