git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4228 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2012-05-22 18:52:25 +00:00
parent 8e0b313cc4
commit bbea726934
3 changed files with 6 additions and 2 deletions

View File

@ -145,6 +145,10 @@
* @brief SDIO data timeouts in SDIO clock cycles. * @brief SDIO data timeouts in SDIO clock cycles.
*/ */
#if (defined(STM32F4XX) || defined(STM32F2XX)) #if (defined(STM32F4XX) || defined(STM32F2XX))
#if !STM32_CLOCK48_REQUIRED
#error "SDIO requires STM32_CLOCK48_REQUIRED to be enabled"
#endif
#define STM32_SDC_WRITE_TIMEOUT \ #define STM32_SDC_WRITE_TIMEOUT \
(((STM32_PLL48CLK / (STM32_SDIO_DIV_HS + 2)) / 1000) * SDC_WRITE_TIMEOUT_MS) (((STM32_PLL48CLK / (STM32_SDIO_DIV_HS + 2)) / 1000) * SDC_WRITE_TIMEOUT_MS)
#define STM32_SDC_READ_TIMEOUT \ #define STM32_SDC_READ_TIMEOUT \

View File

@ -596,7 +596,7 @@
#endif #endif
/** /**
* @brief USB clock setting. * @brief USB/SDIO clock setting.
*/ */
#if !defined(STM32_CLOCK48_REQUIRED) || defined(__DOXYGEN__) #if !defined(STM32_CLOCK48_REQUIRED) || defined(__DOXYGEN__)
#define STM32_CLOCK48_REQUIRED TRUE #define STM32_CLOCK48_REQUIRED TRUE

View File

@ -602,7 +602,7 @@
#endif #endif
/** /**
* @brief USB clock setting. * @brief USB/SDIO clock setting.
*/ */
#if !defined(STM32_CLOCK48_REQUIRED) || defined(__DOXYGEN__) #if !defined(STM32_CLOCK48_REQUIRED) || defined(__DOXYGEN__)
#define STM32_CLOCK48_REQUIRED TRUE #define STM32_CLOCK48_REQUIRED TRUE