summaryrefslogtreecommitdiffstats
path: root/c/src/libchip/i2c/spi-sd-card.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/libchip/i2c/spi-sd-card.h')
-rw-r--r--c/src/libchip/i2c/spi-sd-card.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/c/src/libchip/i2c/spi-sd-card.h b/c/src/libchip/i2c/spi-sd-card.h
index 9817381c33..6c4f95cc92 100644
--- a/c/src/libchip/i2c/spi-sd-card.h
+++ b/c/src/libchip/i2c/spi-sd-card.h
@@ -12,8 +12,9 @@
* Germany
* rtems@embedded-brains.de
*
- * The license and distribution terms for this file may be found in the file
- * LICENSE in this distribution or at http://www.rtems.com/license/LICENSE.
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
*/
#ifndef LIBI2C_SD_CARD_H
@@ -52,7 +53,8 @@ extern "C" {
SD_CARD_IDLE_TOKEN \
}
-#define SD_CARD_N_AC_MAX_DEFAULT 8
+/* Default speed = 400kbps, default timeout = 100ms, n_ac_max is in bytes */
+#define SD_CARD_N_AC_MAX_DEFAULT 5000
typedef struct {
const char *device_name;
@@ -68,6 +70,7 @@ typedef struct {
bool busy;
bool verbose;
bool schedule_if_busy;
+ uint32_t retries;
} sd_card_driver_entry;
extern sd_card_driver_entry sd_card_driver_table [];