diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-02-23 14:23:15 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-02-23 14:23:15 +0000 |
commit | e42ca31b0f62818ed84c144eea7195515da7924f (patch) | |
tree | 1957890996cd67f67b8b5e09861fbe23a8af3a91 /os/hal/ports/STM32/LLD/sdc_lld.h | |
parent | 20551e0172314fabfbf2889bbbfb4b2d62c39d9c (diff) | |
download | ChibiOS-e42ca31b0f62818ed84c144eea7195515da7924f.tar.gz ChibiOS-e42ca31b0f62818ed84c144eea7195515da7924f.tar.bz2 ChibiOS-e42ca31b0f62818ed84c144eea7195515da7924f.zip |
limit the use of scratchpad buffer
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7697 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/LLD/sdc_lld.h')
-rw-r--r-- | os/hal/ports/STM32/LLD/sdc_lld.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/os/hal/ports/STM32/LLD/sdc_lld.h b/os/hal/ports/STM32/LLD/sdc_lld.h index 8c0f7eb4c..dbad8df76 100644 --- a/os/hal/ports/STM32/LLD/sdc_lld.h +++ b/os/hal/ports/STM32/LLD/sdc_lld.h @@ -219,18 +219,19 @@ typedef struct SDCDriver SDCDriver; */
typedef struct {
/**
- * @brief Bus width (board specific).
- */
- sdcbusmode_t bus_width;
- /**
- * @brief Working area for memory consuming operations during init
- * procedures (temporal storage for EXT_CSD, etc.).
+ * @brief Working area for memory consuming operations.
* @note Buffer must be word aligned and big enough to store 512 bytes.
- * @note It is mandatory for MMC bigger than 2GB.
- * @note Memory can be freed after @p sdcConnect return. Do not
- * forget to set this pointer to @p NULL after freeing.
+ * @note It is mandatory for detecting MMC cards bigger than 2GB else it
+ * can be @p NULL.
+ * @note Memory pointed by this buffer is only used by @p sdcConnect(),
+ * afterward it can be reused for other purposes.
*/
uint8_t *scratchpad;
+ /* End of the mandatory fields.*/
+ /**
+ * @brief Bus width.
+ */
+ sdcbusmode_t bus_width;
} SDCConfig;
/**
@@ -288,7 +289,7 @@ struct SDCDriver { const stm32_dma_stream_t *dma;
/**
* @brief Pointer to the SDIO registers block.
- * @note Needed for dubugging aid.
+ * @note Needed for debugging aid.
*/
SDIO_TypeDef *sdio;
};
|