diff options
| author | Damien <damien.p.george@gmail.com> | 2013-10-30 22:27:38 +0000 |
|---|---|---|
| committer | Damien <damien.p.george@gmail.com> | 2013-10-30 22:27:38 +0000 |
| commit | 4a14eb0b8dfe103cba0421a61171b804a4102162 (patch) | |
| tree | 20328da1f6fe71a20835242fb5ca54bcef8f9273 | |
| parent | 5892f4710e73714fa9048959c63b777490c1a68b (diff) | |
PC13 (SDIO detect) can handle at most 2MHz speed config.
| -rw-r--r-- | stm/lib/stm324x7i_eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stm/lib/stm324x7i_eval.c b/stm/lib/stm324x7i_eval.c index 02b8964b1..ad7c5469c 100644 --- a/stm/lib/stm324x7i_eval.c +++ b/stm/lib/stm324x7i_eval.c @@ -242,6 +242,7 @@ void SD_LowLevel_Init(void) /*!< Configure SD_SPI_DETECT_PIN pin: SD Card detect pin */
// dpgeorge: switch is normally open, connected to VDD when card inserted
GPIO_InitStructure.GPIO_Pin = SD_DETECT_PIN;
+ GPIO_InitStructure.GPIO_Speed = GPIO_Speed_2MHz; // needs to be 2MHz due to restrictions on PC13
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_DOWN;
GPIO_Init(SD_DETECT_GPIO_PORT, &GPIO_InitStructure);
|
