summaryrefslogtreecommitdiff
path: root/stm/mma.c
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-10-24 00:22:27 +0100
committerDamien <damien.p.george@gmail.com>2013-10-24 00:22:27 +0100
commit7ee80bac8e6fb3f696a40f4ac6bb2cc52fda9fef (patch)
treeb9496381b25ebf55acf7e4cc0dd50cad6ded5f72 /stm/mma.c
parent6f08f8ce51adf06aa64743faa713c6b7a7c2db9a (diff)
Add support for SD card (not working).
Diffstat (limited to 'stm/mma.c')
-rw-r--r--stm/mma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stm/mma.c b/stm/mma.c
index 48817b2d9..937da1cf7 100644
--- a/stm/mma.c
+++ b/stm/mma.c
@@ -61,6 +61,7 @@ void mma_init(void) {
I2C1->CR1 |= I2C_CR1_PE;
// wait 20ms, then turn on AVDD, then wait 20ms again; this seems to work, but maybe can decrease delays
+ // doesn't work for soft reboot; 50ms doesn't work either...
sys_tick_delay_ms(20);
GPIOB->BSRRL = GPIO_Pin_5;
sys_tick_delay_ms(20);