From 57eb83da9d9c860357d1530b90871a31b2f5bcb8 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 26 Aug 2013 08:54:46 -0600 Subject: [PATCH] #17 Fix if CONFIG_SDIO_BLOCKSETUP defined, OS will crash. From CCTSAO --- arch/arm/src/stm32/stm32_sdio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/src/stm32/stm32_sdio.c b/arch/arm/src/stm32/stm32_sdio.c index ba556b4968..8b8d4d1de5 100644 --- a/arch/arm/src/stm32/stm32_sdio.c +++ b/arch/arm/src/stm32/stm32_sdio.c @@ -481,6 +481,9 @@ struct stm32_dev_s g_sdiodev = .clock = stm32_clock, .attach = stm32_attach, .sendcmd = stm32_sendcmd, +#ifdef CONFIG_SDIO_BLOCKSETUP + .blocksetup = stm32_blocksetup, /* Not implemented yet */ +#endif .recvsetup = stm32_recvsetup, .sendsetup = stm32_sendsetup, .cancel = stm32_cancel,