diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-08-27 13:40:09 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-08-27 13:40:09 +0000 |
commit | 096d7f989dd6df22e2a32516150cfdd9fffd2e4c (patch) | |
tree | 1e8591b9f8e2c4b1047b5c813c7bf1a424bb1ee6 /os | |
parent | 40af275be262e19419af9d32bc68f811c8388e2b (diff) | |
download | ChibiOS-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')
-rw-r--r-- | os/hal/ports/STM32/LLD/TIMv1/stm32_tim.c | 56 | ||||
-rw-r--r-- | os/hal/ports/STM32/LLD/TIMv1/stm32_tim.h | 2 |
2 files changed, 57 insertions, 1 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 */
+
+/** @} */
diff --git a/os/hal/ports/STM32/LLD/TIMv1/stm32_tim.h b/os/hal/ports/STM32/LLD/TIMv1/stm32_tim.h index c2842b275..d8bf5e55a 100644 --- a/os/hal/ports/STM32/LLD/TIMv1/stm32_tim.h +++ b/os/hal/ports/STM32/LLD/TIMv1/stm32_tim.h @@ -16,7 +16,7 @@ /**
* @file stm32_tim.h
- * @brief STM32 TIM registers layout header.
+ * @brief STM32 TIM units common header.
* @note This file requires definitions from the ST STM32 header file.
*
* @addtogroup STM32_TIMv1
|