aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/sdc_lld.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-05-01 09:10:22 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-05-01 09:10:22 +0000
commit40c7b22bf43d795d9e6822f67907a1665aa6d7b6 (patch)
treef2b67a5fcdb85a4ef348c7fbe29184b76b316433 /os/hal/platforms/STM32/sdc_lld.h
parentdd9cac5ffa29031b1175bb750e587a20362f5276 (diff)
downloadChibiOS-40c7b22bf43d795d9e6822f67907a1665aa6d7b6.tar.gz
ChibiOS-40c7b22bf43d795d9e6822f67907a1665aa6d7b6.tar.bz2
ChibiOS-40c7b22bf43d795d9e6822f67907a1665aa6d7b6.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2908 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/sdc_lld.h')
-rw-r--r--os/hal/platforms/STM32/sdc_lld.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32/sdc_lld.h b/os/hal/platforms/STM32/sdc_lld.h
index 729244e91..fff6133b2 100644
--- a/os/hal/platforms/STM32/sdc_lld.h
+++ b/os/hal/platforms/STM32/sdc_lld.h
@@ -99,6 +99,11 @@ typedef enum {
} sdcbusmode_t;
/**
+ * @brief Type of card flags.
+ */
+typedef uint32_t sdcmode_t;
+
+/**
* @brief Type of a structure representing an SDC driver.
*/
typedef struct SDCDriver SDCDriver;
@@ -123,6 +128,10 @@ struct SDCDriver {
* @brief Current configuration data.
*/
const SDCConfig *config;
+ /**
+ * @brief Various flags regarding the mounted card.
+ */
+ sdcmode_t cardmode;
/* End of the mandatory fields.*/
};
@@ -144,7 +153,7 @@ extern "C" {
void sdc_lld_init(void);
void sdc_lld_start(SDCDriver *sdcp);
void sdc_lld_stop(SDCDriver *sdcp);
- void sdc_lld_set_init_clk(SDCDriver *sdcp);
+ void sdc_lld_start_clk(SDCDriver *sdcp);
void sdc_lld_set_data_clk(SDCDriver *sdcp);
void sdc_lld_stop_clk(SDCDriver *sdcp);
void sdc_lld_set_bus_mode(SDCDriver *sdcp, sdcbusmode_t mode);