aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/SAMA/LLD/SDMMCv1/sama_sdmmc_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/ports/SAMA/LLD/SDMMCv1/sama_sdmmc_lld.h')
-rw-r--r--os/hal/ports/SAMA/LLD/SDMMCv1/sama_sdmmc_lld.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/os/hal/ports/SAMA/LLD/SDMMCv1/sama_sdmmc_lld.h b/os/hal/ports/SAMA/LLD/SDMMCv1/sama_sdmmc_lld.h
index 9b672c642..7093dd9b3 100644
--- a/os/hal/ports/SAMA/LLD/SDMMCv1/sama_sdmmc_lld.h
+++ b/os/hal/ports/SAMA/LLD/SDMMCv1/sama_sdmmc_lld.h
@@ -78,21 +78,18 @@ typedef struct {
struct _pmc_periph_cfg pmccfg;
bool use_fastest_clock;
-
+#if SDMMC_USE_TC == 1
Tc * tctimer;
-
uint8_t tc_chan;
+#endif
uint8_t * bp;
uint8_t * data_buf;
uint32_t data_buf_size;
-
-
uint32_t * dma_table;
uint32_t dma_table_size;
-
} SamaSDMMCConfig;
@@ -132,6 +129,11 @@ struct SamaSDMMCDriver
uint32_t timeout_ticks;
int8_t timeout_elapsed;
systime_t time,now;
+#if SDMMC_USE_TC == 0
+ rtcnt_t timeout_cycles;
+ rtcnt_t start_cycles;
+#endif
+
};
typedef sSdCard sdmmclib;
typedef struct SamaSDMMCDriver SdmmcDriver;