aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD/TIMv1/stm32_tim.c
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-08-27 13:40:09 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-08-27 13:40:09 +0000
commit096d7f989dd6df22e2a32516150cfdd9fffd2e4c (patch)
tree1e8591b9f8e2c4b1047b5c813c7bf1a424bb1ee6 /os/hal/ports/STM32/LLD/TIMv1/stm32_tim.c
parent40af275be262e19419af9d32bc68f811c8388e2b (diff)
downloadChibiOS-096d7f989dd6df22e2a32516150cfdd9fffd2e4c.tar.gz
ChibiOS-096d7f989dd6df22e2a32516150cfdd9fffd2e4c.tar.bz2
ChibiOS-096d7f989dd6df22e2a32516150cfdd9fffd2e4c.zip
Template for centralizing common TIM units code.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8249 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/LLD/TIMv1/stm32_tim.c')
-rw-r--r--os/hal/ports/STM32/LLD/TIMv1/stm32_tim.c56
1 files changed, 56 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/TIMv1/stm32_tim.c b/os/hal/ports/STM32/LLD/TIMv1/stm32_tim.c
new file mode 100644
index 000000000..419997c5d
--- /dev/null
+++ b/os/hal/ports/STM32/LLD/TIMv1/stm32_tim.c
@@ -0,0 +1,56 @@
+/*
+ ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+*/
+
+/**
+ * @file stm32_tim.h
+ * @brief STM32 TIM units common code.
+ * @note This file requires definitions from the ST STM32 header file.
+ *
+ * @addtogroup STM32_TIMv1
+ * @{
+ */
+
+#include "hal.h"
+
+#if HAL_USE_GPT || HAL_USE_ICU || HAL_USE_PWM || defined(__DOXYGEN__)
+
+/*===========================================================================*/
+/* Driver local definitions. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver exported variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver local variables and types. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver local functions. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver interrupt handlers. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver exported functions. */
+/*===========================================================================*/
+
+#endif /* HAL_USE_GPT || HAL_USE_ICU || HAL_USE_PWM */
+
+/** @} */