mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
targets/TARGET_STM/TARGET_STM32F0/device/stm32f0xx_ll_crs.c@156:95d6b41a828b, 2017-01-16 (annotated)
- Committer:
- <>
- Date:
- Mon Jan 16 15:03:32 2017 +0000
- Revision:
- 156:95d6b41a828b
- Child:
- 180:96ed750bd169
This updates the lib to the mbed lib v134
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 156:95d6b41a828b | 1 | /** |
<> | 156:95d6b41a828b | 2 | ****************************************************************************** |
<> | 156:95d6b41a828b | 3 | * @file stm32f0xx_ll_crs.h |
<> | 156:95d6b41a828b | 4 | * @author MCD Application Team |
<> | 156:95d6b41a828b | 5 | * @version V1.4.0 |
<> | 156:95d6b41a828b | 6 | * @date 27-May-2016 |
<> | 156:95d6b41a828b | 7 | * @brief CRS LL module driver. |
<> | 156:95d6b41a828b | 8 | ****************************************************************************** |
<> | 156:95d6b41a828b | 9 | * @attention |
<> | 156:95d6b41a828b | 10 | * |
<> | 156:95d6b41a828b | 11 | * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
<> | 156:95d6b41a828b | 12 | * |
<> | 156:95d6b41a828b | 13 | * Redistribution and use in source and binary forms, with or without modification, |
<> | 156:95d6b41a828b | 14 | * are permitted provided that the following conditions are met: |
<> | 156:95d6b41a828b | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
<> | 156:95d6b41a828b | 16 | * this list of conditions and the following disclaimer. |
<> | 156:95d6b41a828b | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
<> | 156:95d6b41a828b | 18 | * this list of conditions and the following disclaimer in the documentation |
<> | 156:95d6b41a828b | 19 | * and/or other materials provided with the distribution. |
<> | 156:95d6b41a828b | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
<> | 156:95d6b41a828b | 21 | * may be used to endorse or promote products derived from this software |
<> | 156:95d6b41a828b | 22 | * without specific prior written permission. |
<> | 156:95d6b41a828b | 23 | * |
<> | 156:95d6b41a828b | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
<> | 156:95d6b41a828b | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
<> | 156:95d6b41a828b | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
<> | 156:95d6b41a828b | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
<> | 156:95d6b41a828b | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
<> | 156:95d6b41a828b | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
<> | 156:95d6b41a828b | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
<> | 156:95d6b41a828b | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
<> | 156:95d6b41a828b | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
<> | 156:95d6b41a828b | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
<> | 156:95d6b41a828b | 34 | * |
<> | 156:95d6b41a828b | 35 | ****************************************************************************** |
<> | 156:95d6b41a828b | 36 | */ |
<> | 156:95d6b41a828b | 37 | #if defined(USE_FULL_LL_DRIVER) |
<> | 156:95d6b41a828b | 38 | |
<> | 156:95d6b41a828b | 39 | /* Includes ------------------------------------------------------------------*/ |
<> | 156:95d6b41a828b | 40 | #include "stm32f0xx_ll_crs.h" |
<> | 156:95d6b41a828b | 41 | #include "stm32f0xx_ll_bus.h" |
<> | 156:95d6b41a828b | 42 | |
<> | 156:95d6b41a828b | 43 | /** @addtogroup STM32F0xx_LL_Driver |
<> | 156:95d6b41a828b | 44 | * @{ |
<> | 156:95d6b41a828b | 45 | */ |
<> | 156:95d6b41a828b | 46 | |
<> | 156:95d6b41a828b | 47 | #if defined(CRS) |
<> | 156:95d6b41a828b | 48 | |
<> | 156:95d6b41a828b | 49 | /** @defgroup CRS_LL CRS |
<> | 156:95d6b41a828b | 50 | * @{ |
<> | 156:95d6b41a828b | 51 | */ |
<> | 156:95d6b41a828b | 52 | |
<> | 156:95d6b41a828b | 53 | /* Private types -------------------------------------------------------------*/ |
<> | 156:95d6b41a828b | 54 | /* Private variables ---------------------------------------------------------*/ |
<> | 156:95d6b41a828b | 55 | /* Private constants ---------------------------------------------------------*/ |
<> | 156:95d6b41a828b | 56 | /* Private macros ------------------------------------------------------------*/ |
<> | 156:95d6b41a828b | 57 | /* Private function prototypes -----------------------------------------------*/ |
<> | 156:95d6b41a828b | 58 | |
<> | 156:95d6b41a828b | 59 | /* Exported functions --------------------------------------------------------*/ |
<> | 156:95d6b41a828b | 60 | /** @addtogroup CRS_LL_Exported_Functions |
<> | 156:95d6b41a828b | 61 | * @{ |
<> | 156:95d6b41a828b | 62 | */ |
<> | 156:95d6b41a828b | 63 | |
<> | 156:95d6b41a828b | 64 | /** @addtogroup CRS_LL_EF_Init |
<> | 156:95d6b41a828b | 65 | * @{ |
<> | 156:95d6b41a828b | 66 | */ |
<> | 156:95d6b41a828b | 67 | |
<> | 156:95d6b41a828b | 68 | /** |
<> | 156:95d6b41a828b | 69 | * @brief De-Initializes CRS peripheral registers to their default reset values. |
<> | 156:95d6b41a828b | 70 | * @retval An ErrorStatus enumeration value: |
<> | 156:95d6b41a828b | 71 | * - SUCCESS: CRS registers are de-initialized |
<> | 156:95d6b41a828b | 72 | * - ERROR: not applicable |
<> | 156:95d6b41a828b | 73 | */ |
<> | 156:95d6b41a828b | 74 | ErrorStatus LL_CRS_DeInit(void) |
<> | 156:95d6b41a828b | 75 | { |
<> | 156:95d6b41a828b | 76 | LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_CRS); |
<> | 156:95d6b41a828b | 77 | LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_CRS); |
<> | 156:95d6b41a828b | 78 | |
<> | 156:95d6b41a828b | 79 | return SUCCESS; |
<> | 156:95d6b41a828b | 80 | } |
<> | 156:95d6b41a828b | 81 | |
<> | 156:95d6b41a828b | 82 | |
<> | 156:95d6b41a828b | 83 | |
<> | 156:95d6b41a828b | 84 | /** |
<> | 156:95d6b41a828b | 85 | * @} |
<> | 156:95d6b41a828b | 86 | */ |
<> | 156:95d6b41a828b | 87 | |
<> | 156:95d6b41a828b | 88 | /** |
<> | 156:95d6b41a828b | 89 | * @} |
<> | 156:95d6b41a828b | 90 | */ |
<> | 156:95d6b41a828b | 91 | |
<> | 156:95d6b41a828b | 92 | /** |
<> | 156:95d6b41a828b | 93 | * @} |
<> | 156:95d6b41a828b | 94 | */ |
<> | 156:95d6b41a828b | 95 | |
<> | 156:95d6b41a828b | 96 | #endif /* defined(CRS) */ |
<> | 156:95d6b41a828b | 97 | |
<> | 156:95d6b41a828b | 98 | /** |
<> | 156:95d6b41a828b | 99 | * @} |
<> | 156:95d6b41a828b | 100 | */ |
<> | 156:95d6b41a828b | 101 | |
<> | 156:95d6b41a828b | 102 | #endif /* USE_FULL_LL_DRIVER */ |
<> | 156:95d6b41a828b | 103 | |
<> | 156:95d6b41a828b | 104 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |