aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD/TIMv1/hal_pwm_lld.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@110e8d01-0319-4d1e-a829-52ad28d1bb01>2018-10-13 19:10:22 +0000
committergdisirio <gdisirio@110e8d01-0319-4d1e-a829-52ad28d1bb01>2018-10-13 19:10:22 +0000
commit1ca01403b48e0cadb8712d4e4a8024ea62300cad (patch)
tree9f72fe317f1461a27389d19bd058d034fbf74899 /os/hal/ports/STM32/LLD/TIMv1/hal_pwm_lld.h
parent062b4f7d37eab6c2deea02732e19eb641764a31e (diff)
downloadChibiOS-1ca01403b48e0cadb8712d4e4a8024ea62300cad.tar.gz
ChibiOS-1ca01403b48e0cadb8712d4e4a8024ea62300cad.tar.bz2
ChibiOS-1ca01403b48e0cadb8712d4e4a8024ea62300cad.zip
Added support for TIM21 and TIM22 in STM32 GPT driver. Reinforced checks in TIM-related drivers.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12360 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal/ports/STM32/LLD/TIMv1/hal_pwm_lld.h')
-rw-r--r--os/hal/ports/STM32/LLD/TIMv1/hal_pwm_lld.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/TIMv1/hal_pwm_lld.h b/os/hal/ports/STM32/LLD/TIMv1/hal_pwm_lld.h
index 24ca5c430..f54aa97c5 100644
--- a/os/hal/ports/STM32/LLD/TIMv1/hal_pwm_lld.h
+++ b/os/hal/ports/STM32/LLD/TIMv1/hal_pwm_lld.h
@@ -208,6 +208,34 @@
/* Configuration checks. */
/*===========================================================================*/
+#if !defined(STM32_HAS_TIM1)
+#define STM32_HAS_TIM1 FALSE
+#endif
+
+#if !defined(STM32_HAS_TIM2)
+#define STM32_HAS_TIM2 FALSE
+#endif
+
+#if !defined(STM32_HAS_TIM3)
+#define STM32_HAS_TIM3 FALSE
+#endif
+
+#if !defined(STM32_HAS_TIM4)
+#define STM32_HAS_TIM4 FALSE
+#endif
+
+#if !defined(STM32_HAS_TIM5)
+#define STM32_HAS_TIM5 FALSE
+#endif
+
+#if !defined(STM32_HAS_TIM8)
+#define STM32_HAS_TIM8 FALSE
+#endif
+
+#if !defined(STM32_HAS_TIM9)
+#define STM32_HAS_TIM9 FALSE
+#endif
+
#if STM32_PWM_USE_TIM1 && !STM32_HAS_TIM1
#error "TIM1 not present in the selected device"
#endif