<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2010-06-21)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>sh</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-06-21 Arnout Vandecappelle <arnout@mind.be>

        PR 1576/misc
        * libchip/i2c/spi-sd-card.c: Enable CRC checks.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/ChangeLog.diff?r1=text&tr1=1.523&r2=text&tr2=1.524&diff_format=h">M</a></td><td width='1%'>1.524</td><td width='100%'>c/src/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/libchip/i2c/spi-sd-card.c.diff?r1=text&tr1=1.18&r2=text&tr2=1.19&diff_format=h">M</a></td><td width='1%'>1.19</td><td width='100%'>c/src/libchip/i2c/spi-sd-card.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/ChangeLog:1.523 rtems/c/src/ChangeLog:1.524
--- rtems/c/src/ChangeLog:1.523 Mon Jun 21 09:36:24 2010
+++ rtems/c/src/ChangeLog       Mon Jun 21 10:25:04 2010
</font><font color='#997700'>@@ -1,5 +1,10 @@
</font> 2010-06-21        Arnout Vandecappelle <arnout@mind.be>
 
<font color='#000088'>+   PR 1576/misc
+       * libchip/i2c/spi-sd-card.c: Enable CRC checks.
+
+2010-06-21     Arnout Vandecappelle <arnout@mind.be>
+
</font>   PR 1569/misc
        * libchip/i2c/spi-sd-card.c: Added CRC checks.
 

<font color='#006600'>diff -u rtems/c/src/libchip/i2c/spi-sd-card.c:1.18 rtems/c/src/libchip/i2c/spi-sd-card.c:1.19
--- rtems/c/src/libchip/i2c/spi-sd-card.c:1.18  Mon Jun 21 09:36:25 2010
+++ rtems/c/src/libchip/i2c/spi-sd-card.c       Mon Jun 21 10:25:04 2010
</font><font color='#997700'>@@ -461,7 +461,8 @@
</font>   }
 
        crc7 = sd_card_compute_crc7( e->response + e->response_index, 5);
<font color='#880000'>-   if (crc7 != SD_CARD_COMMAND_GET_CRC7( e->response + e->response_index)) {
</font><font color='#000088'>+      if (crc7 != SD_CARD_COMMAND_GET_CRC7( e->response + e->response_index) &&
+               SD_CARD_COMMAND_GET_CRC7( e->response + e->response_index) != 0x7f) {
</font>           RTEMS_SYSLOG_ERROR( "CRC check failed on register command\n");
                return -RTEMS_IO_ERROR;
        }
<font color='#997700'>@@ -752,6 +753,9 @@
</font>           cmd_arg = SD_CARD_FLAG_HCS;
        }
 
<font color='#000088'>+   /* Enable CRC */
+       sd_card_send_command( e, SD_CARD_CMD_CRC_ON_OFF, 1);
+
</font>   /* Initialize card */
        while (true) {
                if (assume_sd) {
</pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>