From 096d7f989dd6df22e2a32516150cfdd9fffd2e4c Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Thu, 27 Aug 2015 13:40:09 +0000 Subject: [PATCH] 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 --- os/hal/ports/STM32/LLD/TIMv1/stm32_tim.c | 56 ++++++++++++++++++++++++ os/hal/ports/STM32/LLD/TIMv1/stm32_tim.h | 2 +- 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 os/hal/ports/STM32/LLD/TIMv1/stm32_tim.c 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