Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: SPIne CH_Communicatuin_Test CH_Communicatuin_Test2 MCP_SPIne ... more
Fork of mbed-dev-f303 by
targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_ll_hrtim.c@157:ff67d9f36b67, 2017-02-02 (annotated)
- Committer:
- <>
- Date:
- Thu Feb 02 17:01:33 2017 +0000
- Revision:
- 157:ff67d9f36b67
This updates the lib to the mbed lib v135
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| <> | 157:ff67d9f36b67 | 1 | /** |
| <> | 157:ff67d9f36b67 | 2 | ****************************************************************************** |
| <> | 157:ff67d9f36b67 | 3 | * @file stm32f3xx_ll_hrtim.c |
| <> | 157:ff67d9f36b67 | 4 | * @author MCD Application Team |
| <> | 157:ff67d9f36b67 | 5 | * @version V1.4.0 |
| <> | 157:ff67d9f36b67 | 6 | * @date 16-December-2016 |
| <> | 157:ff67d9f36b67 | 7 | * @brief HRTIM LL module driver. |
| <> | 157:ff67d9f36b67 | 8 | ****************************************************************************** |
| <> | 157:ff67d9f36b67 | 9 | * @attention |
| <> | 157:ff67d9f36b67 | 10 | * |
| <> | 157:ff67d9f36b67 | 11 | * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
| <> | 157:ff67d9f36b67 | 12 | * |
| <> | 157:ff67d9f36b67 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
| <> | 157:ff67d9f36b67 | 14 | * are permitted provided that the following conditions are met: |
| <> | 157:ff67d9f36b67 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
| <> | 157:ff67d9f36b67 | 16 | * this list of conditions and the following disclaimer. |
| <> | 157:ff67d9f36b67 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
| <> | 157:ff67d9f36b67 | 18 | * this list of conditions and the following disclaimer in the documentation |
| <> | 157:ff67d9f36b67 | 19 | * and/or other materials provided with the distribution. |
| <> | 157:ff67d9f36b67 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
| <> | 157:ff67d9f36b67 | 21 | * may be used to endorse or promote products derived from this software |
| <> | 157:ff67d9f36b67 | 22 | * without specific prior written permission. |
| <> | 157:ff67d9f36b67 | 23 | * |
| <> | 157:ff67d9f36b67 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| <> | 157:ff67d9f36b67 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| <> | 157:ff67d9f36b67 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| <> | 157:ff67d9f36b67 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| <> | 157:ff67d9f36b67 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| <> | 157:ff67d9f36b67 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| <> | 157:ff67d9f36b67 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| <> | 157:ff67d9f36b67 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| <> | 157:ff67d9f36b67 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| <> | 157:ff67d9f36b67 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| <> | 157:ff67d9f36b67 | 34 | * |
| <> | 157:ff67d9f36b67 | 35 | ****************************************************************************** |
| <> | 157:ff67d9f36b67 | 36 | */ |
| <> | 157:ff67d9f36b67 | 37 | #if defined(USE_FULL_LL_DRIVER) |
| <> | 157:ff67d9f36b67 | 38 | |
| <> | 157:ff67d9f36b67 | 39 | /* Includes ------------------------------------------------------------------*/ |
| <> | 157:ff67d9f36b67 | 40 | #include "stm32f3xx_ll_hrtim.h" |
| <> | 157:ff67d9f36b67 | 41 | #include "stm32f3xx_ll_bus.h" |
| <> | 157:ff67d9f36b67 | 42 | |
| <> | 157:ff67d9f36b67 | 43 | #ifdef USE_FULL_ASSERT |
| <> | 157:ff67d9f36b67 | 44 | #include "stm32_assert.h" |
| <> | 157:ff67d9f36b67 | 45 | #else |
| <> | 157:ff67d9f36b67 | 46 | #define assert_param(expr) ((void)0U) |
| <> | 157:ff67d9f36b67 | 47 | #endif |
| <> | 157:ff67d9f36b67 | 48 | |
| <> | 157:ff67d9f36b67 | 49 | /** @addtogroup STM32F3xx_LL_Driver |
| <> | 157:ff67d9f36b67 | 50 | * @{ |
| <> | 157:ff67d9f36b67 | 51 | */ |
| <> | 157:ff67d9f36b67 | 52 | |
| <> | 157:ff67d9f36b67 | 53 | #if defined (HRTIM1) |
| <> | 157:ff67d9f36b67 | 54 | |
| <> | 157:ff67d9f36b67 | 55 | /** @addtogroup HRTIM_LL |
| <> | 157:ff67d9f36b67 | 56 | * @{ |
| <> | 157:ff67d9f36b67 | 57 | */ |
| <> | 157:ff67d9f36b67 | 58 | |
| <> | 157:ff67d9f36b67 | 59 | /* Private types -------------------------------------------------------------*/ |
| <> | 157:ff67d9f36b67 | 60 | /* Private variables ---------------------------------------------------------*/ |
| <> | 157:ff67d9f36b67 | 61 | /* Private constants ---------------------------------------------------------*/ |
| <> | 157:ff67d9f36b67 | 62 | /* Private macros ------------------------------------------------------------*/ |
| <> | 157:ff67d9f36b67 | 63 | /* Private function prototypes -----------------------------------------------*/ |
| <> | 157:ff67d9f36b67 | 64 | /* Exported functions --------------------------------------------------------*/ |
| <> | 157:ff67d9f36b67 | 65 | /** @addtogroup HRTIM_LL_Exported_Functions |
| <> | 157:ff67d9f36b67 | 66 | * @{ |
| <> | 157:ff67d9f36b67 | 67 | */ |
| <> | 157:ff67d9f36b67 | 68 | /** |
| <> | 157:ff67d9f36b67 | 69 | * @brief Set HRTIM instance registers to their reset values. |
| <> | 157:ff67d9f36b67 | 70 | * @param HRTIMx High Resolution Timer instance |
| <> | 157:ff67d9f36b67 | 71 | * @retval ErrorStatus enumeration value: |
| <> | 157:ff67d9f36b67 | 72 | * - SUCCESS: HRTIMx registers are de-initialized |
| <> | 157:ff67d9f36b67 | 73 | * - ERROR: invalid HRTIMx instance |
| <> | 157:ff67d9f36b67 | 74 | */ |
| <> | 157:ff67d9f36b67 | 75 | ErrorStatus LL_HRTIM_DeInit(HRTIM_TypeDef* HRTIMx) |
| <> | 157:ff67d9f36b67 | 76 | { |
| <> | 157:ff67d9f36b67 | 77 | ErrorStatus result = SUCCESS; |
| <> | 157:ff67d9f36b67 | 78 | |
| <> | 157:ff67d9f36b67 | 79 | /* Check the parameters */ |
| <> | 157:ff67d9f36b67 | 80 | assert_param(IS_HRTIM_ALL_INSTANCE(HRTIMx)); |
| <> | 157:ff67d9f36b67 | 81 | |
| <> | 157:ff67d9f36b67 | 82 | LL_APB2_GRP1_ForceReset(LL_APB2_GRP1_PERIPH_HRTIM1); |
| <> | 157:ff67d9f36b67 | 83 | LL_APB2_GRP1_ReleaseReset(LL_APB2_GRP1_PERIPH_HRTIM1); |
| <> | 157:ff67d9f36b67 | 84 | |
| <> | 157:ff67d9f36b67 | 85 | return result; |
| <> | 157:ff67d9f36b67 | 86 | } |
| <> | 157:ff67d9f36b67 | 87 | /** |
| <> | 157:ff67d9f36b67 | 88 | * @} |
| <> | 157:ff67d9f36b67 | 89 | */ |
| <> | 157:ff67d9f36b67 | 90 | |
| <> | 157:ff67d9f36b67 | 91 | /** |
| <> | 157:ff67d9f36b67 | 92 | * @} |
| <> | 157:ff67d9f36b67 | 93 | */ |
| <> | 157:ff67d9f36b67 | 94 | |
| <> | 157:ff67d9f36b67 | 95 | #endif /* HRTIM1 */ |
| <> | 157:ff67d9f36b67 | 96 | |
| <> | 157:ff67d9f36b67 | 97 | /** |
| <> | 157:ff67d9f36b67 | 98 | * @} |
| <> | 157:ff67d9f36b67 | 99 | */ |
| <> | 157:ff67d9f36b67 | 100 | |
| <> | 157:ff67d9f36b67 | 101 | #endif /* USE_FULL_LL_DRIVER */ |
| <> | 157:ff67d9f36b67 | 102 | |
| <> | 157:ff67d9f36b67 | 103 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
