aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/sdc_lld.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-04-30 07:52:35 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-04-30 07:52:35 +0000
commit2e7866f634ddf31530c0c83ff8bdfc3b75f42e82 (patch)
treebc1b6fade3107edfe7dca873c0626d46b3354647 /os/hal/platforms/STM32/sdc_lld.h
parent699789a7227a90c7b4b8cbcf91fe4cbad2de9132 (diff)
downloadChibiOS-2e7866f634ddf31530c0c83ff8bdfc3b75f42e82.tar.gz
ChibiOS-2e7866f634ddf31530c0c83ff8bdfc3b75f42e82.tar.bz2
ChibiOS-2e7866f634ddf31530c0c83ff8bdfc3b75f42e82.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2905 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/sdc_lld.h')
-rw-r--r--os/hal/platforms/STM32/sdc_lld.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32/sdc_lld.h b/os/hal/platforms/STM32/sdc_lld.h
index 012fdb1c7..8ed64a5b0 100644
--- a/os/hal/platforms/STM32/sdc_lld.h
+++ b/os/hal/platforms/STM32/sdc_lld.h
@@ -89,6 +89,14 @@
/* Driver data structures and types. */
/*===========================================================================*/
+/**
+ * @brief Type of SDIO bus mode.
+ */
+typedef enum {
+ SDC_MODE_1BIT = 0,
+ SDC_MODE_4BIT,
+ SDC_MODE_8BIT
+} sdcbusmode_t;
/**
* @brief Type of a structure representing an SDC driver.
@@ -136,6 +144,10 @@ 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_set_data_clk(SDCDriver *sdcp);
+ void sdc_lld_stop_clk(SDCDriver *sdcp);
+ void sdc_lld_set_bus_mode(SDCDriver *sdcp, sdcbusmode_t mode);
void sdc_lld_send_cmd_none(SDCDriver *sdcp, uint8_t cmd, uint32_t arg);
bool_t sdc_lld_send_cmd_short(SDCDriver *sdcp, uint8_t cmd, uint32_t arg,
uint32_t *resp);