aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/PWM
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-03-29 14:51:08 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-03-29 14:51:08 +0000
commitf5ae2552307f20f3fa3d987591fa60576981ce3d (patch)
tree609db5b82a44710a6ca5fff572c265669f2fffef /testhal/STM32/PWM
parent94d34da7f123be71a592f1f883a17fd3389fc803 (diff)
downloadChibiOS-f5ae2552307f20f3fa3d987591fa60576981ce3d.tar.gz
ChibiOS-f5ae2552307f20f3fa3d987591fa60576981ce3d.tar.bz2
ChibiOS-f5ae2552307f20f3fa3d987591fa60576981ce3d.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2850 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/PWM')
-rw-r--r--testhal/STM32/PWM/halconf.h7
-rw-r--r--testhal/STM32/PWM/mcuconf.h14
2 files changed, 21 insertions, 0 deletions
diff --git a/testhal/STM32/PWM/halconf.h b/testhal/STM32/PWM/halconf.h
index 437770851..8d87b73cb 100644
--- a/testhal/STM32/PWM/halconf.h
+++ b/testhal/STM32/PWM/halconf.h
@@ -70,6 +70,13 @@
#endif
/**
+ * @brief Enables the I2C subsystem.
+ */
+#if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
+#define HAL_USE_ICU TRUE
+#endif
+
+/**
* @brief Enables the MAC subsystem.
*/
#if !defined(HAL_USE_MAC) || defined(__DOXYGEN__)
diff --git a/testhal/STM32/PWM/mcuconf.h b/testhal/STM32/PWM/mcuconf.h
index 2f50634ce..17929817f 100644
--- a/testhal/STM32/PWM/mcuconf.h
+++ b/testhal/STM32/PWM/mcuconf.h
@@ -75,6 +75,20 @@
#define STM32_GPT_TIM5_IRQ_PRIORITY 7
/*
+ * ICU driver system settings.
+ */
+#define STM32_ICU_USE_TIM1 FALSE
+#define STM32_ICU_USE_TIM2 TRUE
+#define STM32_ICU_USE_TIM3 FALSE
+#define STM32_ICU_USE_TIM4 FALSE
+#define STM32_ICU_USE_TIM5 FALSE
+#define STM32_ICU_TIM1_IRQ_PRIORITY 7
+#define STM32_ICU_TIM2_IRQ_PRIORITY 7
+#define STM32_ICU_TIM3_IRQ_PRIORITY 7
+#define STM32_ICU_TIM4_IRQ_PRIORITY 7
+#define STM32_ICU_TIM5_IRQ_PRIORITY 7
+
+/*
* PWM driver system settings.
*/
#define STM32_PWM_USE_TIM1 TRUE