aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32F4xx/SDC/mcuconf.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-09-21 10:06:54 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-09-21 10:06:54 +0000
commit5df36352fbd0b637c8f81d0bc04b13f3c404fbb8 (patch)
tree66afc6378999301afa0a637c9d37aec280052b32 /testhal/STM32F4xx/SDC/mcuconf.h
parent06eaa953acb4c328b28f4cc7441adc8653db3642 (diff)
downloadChibiOS-5df36352fbd0b637c8f81d0bc04b13f3c404fbb8.tar.gz
ChibiOS-5df36352fbd0b637c8f81d0bc04b13f3c404fbb8.tar.bz2
ChibiOS-5df36352fbd0b637c8f81d0bc04b13f3c404fbb8.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6310 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32F4xx/SDC/mcuconf.h')
-rw-r--r--testhal/STM32F4xx/SDC/mcuconf.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/testhal/STM32F4xx/SDC/mcuconf.h b/testhal/STM32F4xx/SDC/mcuconf.h
index f5230395b..360d60287 100644
--- a/testhal/STM32F4xx/SDC/mcuconf.h
+++ b/testhal/STM32F4xx/SDC/mcuconf.h
@@ -41,7 +41,7 @@
#define STM32_CLOCK48_REQUIRED TRUE
#define STM32_SW STM32_SW_PLL
#define STM32_PLLSRC STM32_PLLSRC_HSE
-#define STM32_PLLM_VALUE 8
+#define STM32_PLLM_VALUE 12
#define STM32_PLLN_VALUE 336
#define STM32_PLLP_VALUE 2
#define STM32_PLLQ_VALUE 7
@@ -65,9 +65,9 @@
* ADC driver system settings.
*/
#define STM32_ADC_ADCPRE ADC_CCR_ADCPRE_DIV4
-#define STM32_ADC_USE_ADC1 FALSE
-#define STM32_ADC_USE_ADC2 FALSE
-#define STM32_ADC_USE_ADC3 FALSE
+#define STM32_ADC_USE_ADC1 TRUE
+#define STM32_ADC_USE_ADC2 TRUE
+#define STM32_ADC_USE_ADC3 TRUE
#define STM32_ADC_ADC1_DMA_STREAM STM32_DMA_STREAM_ID(2, 4)
#define STM32_ADC_ADC2_DMA_STREAM STM32_DMA_STREAM_ID(2, 2)
#define STM32_ADC_ADC3_DMA_STREAM STM32_DMA_STREAM_ID(2, 1)
@@ -219,6 +219,16 @@
#define STM32_SERIAL_USART6_PRIORITY 12
/*
+ * SDIO driver system settings.
+ */
+#define STM32_SDC_SDIO_DMA_PRIORITY 3
+#define STM32_SDC_SDIO_IRQ_PRIORITY 9
+#define STM32_SDC_WRITE_TIMEOUT_MS 250
+#define STM32_SDC_READ_TIMEOUT_MS 5
+#define STM32_SDC_SDIO_UNALIGNED_SUPPORT TRUE
+#define STM32_SDC_SDIO_DMA_STREAM STM32_DMA_STREAM_ID(2, 3)
+
+/*
* SPI driver system settings.
*/
#define STM32_SPI_USE_SPI1 FALSE