aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32L1xx
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-10-01 12:01:20 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-10-01 12:01:20 +0000
commit909bc60050b8f0d1f4372c1b40424e9cbe934406 (patch)
tree57adef7b110f0bdb9520bf21b8ad068620612371 /testhal/STM32/STM32L1xx
parent0c3a229030656eccc535f88087020379f4d0dee5 (diff)
downloadChibiOS-909bc60050b8f0d1f4372c1b40424e9cbe934406.tar.gz
ChibiOS-909bc60050b8f0d1f4372c1b40424e9cbe934406.tar.bz2
ChibiOS-909bc60050b8f0d1f4372c1b40424e9cbe934406.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7334 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32L1xx')
-rw-r--r--testhal/STM32/STM32L1xx/EXT/mcuconf.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/testhal/STM32/STM32L1xx/EXT/mcuconf.h b/testhal/STM32/STM32L1xx/EXT/mcuconf.h
index 753e83df3..c8967ff98 100644
--- a/testhal/STM32/STM32L1xx/EXT/mcuconf.h
+++ b/testhal/STM32/STM32L1xx/EXT/mcuconf.h
@@ -96,12 +96,12 @@
*/
#define STM32_I2C_USE_I2C1 FALSE
#define STM32_I2C_USE_I2C2 FALSE
+#define STM32_I2C_BUSY_TIMEOUT 50
#define STM32_I2C_I2C1_IRQ_PRIORITY 5
#define STM32_I2C_I2C2_IRQ_PRIORITY 5
#define STM32_I2C_I2C1_DMA_PRIORITY 3
#define STM32_I2C_I2C2_DMA_PRIORITY 3
-#define STM32_I2C_I2C1_DMA_ERROR_HOOK() chSysHalt()
-#define STM32_I2C_I2C2_DMA_ERROR_HOOK() chSysHalt()
+#define STM32_I2C_DMA_ERROR_HOOK(i2cp) osalSysHalt("DMA failure")
/*
* ICU driver system settings.
@@ -146,7 +146,13 @@
#define STM32_SPI_SPI2_DMA_PRIORITY 1
#define STM32_SPI_SPI1_IRQ_PRIORITY 10
#define STM32_SPI_SPI2_IRQ_PRIORITY 10
-#define STM32_SPI_DMA_ERROR_HOOK(spip) chSysHalt()
+#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.
@@ -160,12 +166,12 @@
#define STM32_UART_USART1_DMA_PRIORITY 0
#define STM32_UART_USART2_DMA_PRIORITY 0
#define STM32_UART_USART3_DMA_PRIORITY 0
-#define STM32_UART_DMA_ERROR_HOOK(uartp) chSysHalt()
+#define STM32_UART_DMA_ERROR_HOOK(uartp) osalSysHalt("DMA failure")
/*
* USB driver system settings.
*/
-#define STM32_USB_USE_USB1 TRUE
+#define STM32_USB_USE_USB1 FALSE
#define STM32_USB_LOW_POWER_ON_SUSPEND FALSE
#define STM32_USB_USB1_HP_IRQ_PRIORITY 13
#define STM32_USB_USB1_LP_IRQ_PRIORITY 14