summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorRyan Shaw <ryannathans@hotmail.com>2016-10-10 14:23:21 +1100
committerDamien George <damien.p.george@gmail.com>2016-11-07 16:49:29 +1100
commit8ebd53afc987e0ad21075d9c917020256f6d5b23 (patch)
tree9ca7a72f172c46d3b37a4d625b3b75b0beddb695
parent8f068e84eedd90146b66b9ffd8193e2e37a24b4d (diff)
downloadmicropython-8ebd53afc987e0ad21075d9c917020256f6d5b23.tar.gz
micropython-8ebd53afc987e0ad21075d9c917020256f6d5b23.zip
stmhal: enable SD power save (disable CLK on idle)
-rw-r--r--stmhal/sdcard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/sdcard.c b/stmhal/sdcard.c
index caf6dc8d5d..a2aa4c84d8 100644
--- a/stmhal/sdcard.c
+++ b/stmhal/sdcard.c
@@ -138,7 +138,7 @@ bool sdcard_power_on(void) {
sd_handle.Instance = SDIO;
sd_handle.Init.ClockEdge = SDIO_CLOCK_EDGE_RISING;
sd_handle.Init.ClockBypass = SDIO_CLOCK_BYPASS_DISABLE;
- sd_handle.Init.ClockPowerSave = SDIO_CLOCK_POWER_SAVE_DISABLE;
+ sd_handle.Init.ClockPowerSave = SDIO_CLOCK_POWER_SAVE_ENABLE;
sd_handle.Init.BusWide = SDIO_BUS_WIDE_1B;
sd_handle.Init.HardwareFlowControl = SDIO_HARDWARE_FLOW_CONTROL_DISABLE;
sd_handle.Init.ClockDiv = SDIO_TRANSFER_CLK_DIV;