diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-12-03 15:24:40 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-12-03 15:24:40 +0000 |
commit | 6badc3a05251b000dc421352427766f11939186f (patch) | |
tree | afe4a9085420241bb1ddbe8eb156a6db1fbe7df6 | |
parent | 296b71cd22f32a6e2bd5910da1bfc7867fbb8e36 (diff) | |
download | ChibiOS-6badc3a05251b000dc421352427766f11939186f.tar.gz ChibiOS-6badc3a05251b000dc421352427766f11939186f.tar.bz2 ChibiOS-6badc3a05251b000dc421352427766f11939186f.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6535 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | demos/rt/RT-STM32F429-DISCOVERY/mcuconf.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/demos/rt/RT-STM32F429-DISCOVERY/mcuconf.h b/demos/rt/RT-STM32F429-DISCOVERY/mcuconf.h index cacfa1ff3..2ae9fe7c9 100644 --- a/demos/rt/RT-STM32F429-DISCOVERY/mcuconf.h +++ b/demos/rt/RT-STM32F429-DISCOVERY/mcuconf.h @@ -139,6 +139,7 @@ #define STM32_I2C_USE_I2C1 FALSE
#define STM32_I2C_USE_I2C2 FALSE
#define STM32_I2C_USE_I2C3 FALSE
+#define STM32_I2C_BUSY_TIMEOUT 50
#define STM32_I2C_I2C1_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 0)
#define STM32_I2C_I2C1_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 6)
#define STM32_I2C_I2C2_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 2)
@@ -151,9 +152,7 @@ #define STM32_I2C_I2C1_DMA_PRIORITY 3
#define STM32_I2C_I2C2_DMA_PRIORITY 3
#define STM32_I2C_I2C3_DMA_PRIORITY 3
-#define STM32_I2C_I2C1_DMA_ERROR_HOOK() osalSysHalt("DMA failure")
-#define STM32_I2C_I2C2_DMA_ERROR_HOOK() osalSysHalt("DMA failure")
-#define STM32_I2C_I2C3_DMA_ERROR_HOOK() osalSysHalt("DMA failure")
+#define STM32_I2C_DMA_ERROR_HOOK(i2cp) osalSysHalt("DMA failure")
/*
* ICU driver system settings.
@@ -255,6 +254,12 @@ #define STM32_SPI_DMA_ERROR_HOOK(spip) osalSysHalt("DMA failure")
/*
+ * ST driver system settings.
+ */
+#define STM32_ST_IRQ_PRIORITY 8
+#define STM32_ST_USE_TIMER 2
+
+/*
* UART driver system settings.
*/
#define STM32_UART_USE_USART1 FALSE
|