Changeset 167c6ce in rtems


Ignore:
Timestamp:
Jun 21, 2010, 3:25:04 PM (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
0b95fb8
Parents:
07109c2
Message:

2010-06-21 Arnout Vandecappelle <arnout@…>

PR 1576/misc

  • libchip/i2c/spi-sd-card.c: Enable CRC checks.
Location:
c/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/ChangeLog

    r07109c2 r167c6ce  
     12010-06-21      Arnout Vandecappelle <arnout@mind.be>
     2
     3        PR 1576/misc
     4        * libchip/i2c/spi-sd-card.c: Enable CRC checks.
     5
    162010-06-21      Arnout Vandecappelle <arnout@mind.be>
    27
  • c/src/libchip/i2c/spi-sd-card.c

    r07109c2 r167c6ce  
    462462
    463463        crc7 = sd_card_compute_crc7( e->response + e->response_index, 5);
    464         if (crc7 != SD_CARD_COMMAND_GET_CRC7( e->response + e->response_index)) {
     464        if (crc7 != SD_CARD_COMMAND_GET_CRC7( e->response + e->response_index) &&
     465                SD_CARD_COMMAND_GET_CRC7( e->response + e->response_index) != 0x7f) {
    465466                RTEMS_SYSLOG_ERROR( "CRC check failed on register command\n");
    466467                return -RTEMS_IO_ERROR;
     
    752753                cmd_arg = SD_CARD_FLAG_HCS;
    753754        }
     755
     756        /* Enable CRC */
     757        sd_card_send_command( e, SD_CARD_CMD_CRC_ON_OFF, 1);
    754758
    755759        /* Initialize card */
Note: See TracChangeset for help on using the changeset viewer.