Iftikhar Aziz / mbed-dev

Dependents:   LSS_Rev_1

Fork of mbed-dev by Umar Naeem

Committer:
<>
Date:
Thu Mar 30 13:45:57 2017 +0100
Revision:
161:2cc1468da177
This updates the lib to the mbed lib v139

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 161:2cc1468da177 1 /**
<> 161:2cc1468da177 2 ******************************************************************************
<> 161:2cc1468da177 3 * @file stm32f7xx_ll_crc.c
<> 161:2cc1468da177 4 * @author MCD Application Team
<> 161:2cc1468da177 5 * @version V1.2.0
<> 161:2cc1468da177 6 * @date 30-December-2016
<> 161:2cc1468da177 7 * @brief CRC LL module driver.
<> 161:2cc1468da177 8 ******************************************************************************
<> 161:2cc1468da177 9 * @attention
<> 161:2cc1468da177 10 *
<> 161:2cc1468da177 11 * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
<> 161:2cc1468da177 12 *
<> 161:2cc1468da177 13 * Redistribution and use in source and binary forms, with or without modification,
<> 161:2cc1468da177 14 * are permitted provided that the following conditions are met:
<> 161:2cc1468da177 15 * 1. Redistributions of source code must retain the above copyright notice,
<> 161:2cc1468da177 16 * this list of conditions and the following disclaimer.
<> 161:2cc1468da177 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
<> 161:2cc1468da177 18 * this list of conditions and the following disclaimer in the documentation
<> 161:2cc1468da177 19 * and/or other materials provided with the distribution.
<> 161:2cc1468da177 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
<> 161:2cc1468da177 21 * may be used to endorse or promote products derived from this software
<> 161:2cc1468da177 22 * without specific prior written permission.
<> 161:2cc1468da177 23 *
<> 161:2cc1468da177 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
<> 161:2cc1468da177 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
<> 161:2cc1468da177 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
<> 161:2cc1468da177 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
<> 161:2cc1468da177 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
<> 161:2cc1468da177 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
<> 161:2cc1468da177 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
<> 161:2cc1468da177 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
<> 161:2cc1468da177 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
<> 161:2cc1468da177 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<> 161:2cc1468da177 34 *
<> 161:2cc1468da177 35 ******************************************************************************
<> 161:2cc1468da177 36 */
<> 161:2cc1468da177 37 #if defined(USE_FULL_LL_DRIVER)
<> 161:2cc1468da177 38
<> 161:2cc1468da177 39 /* Includes ------------------------------------------------------------------*/
<> 161:2cc1468da177 40 #include "stm32f7xx_ll_crc.h"
<> 161:2cc1468da177 41 #include "stm32f7xx_ll_bus.h"
<> 161:2cc1468da177 42
<> 161:2cc1468da177 43 #ifdef USE_FULL_ASSERT
<> 161:2cc1468da177 44 #include "stm32_assert.h"
<> 161:2cc1468da177 45 #else
<> 161:2cc1468da177 46 #define assert_param(expr) ((void)0U)
<> 161:2cc1468da177 47 #endif
<> 161:2cc1468da177 48
<> 161:2cc1468da177 49 /** @addtogroup STM32F7xx_LL_Driver
<> 161:2cc1468da177 50 * @{
<> 161:2cc1468da177 51 */
<> 161:2cc1468da177 52
<> 161:2cc1468da177 53 #if defined (CRC)
<> 161:2cc1468da177 54
<> 161:2cc1468da177 55 /** @addtogroup CRC_LL
<> 161:2cc1468da177 56 * @{
<> 161:2cc1468da177 57 */
<> 161:2cc1468da177 58
<> 161:2cc1468da177 59 /* Private types -------------------------------------------------------------*/
<> 161:2cc1468da177 60 /* Private variables ---------------------------------------------------------*/
<> 161:2cc1468da177 61 /* Private constants ---------------------------------------------------------*/
<> 161:2cc1468da177 62 /* Private macros ------------------------------------------------------------*/
<> 161:2cc1468da177 63 /* Private function prototypes -----------------------------------------------*/
<> 161:2cc1468da177 64
<> 161:2cc1468da177 65 /* Exported functions --------------------------------------------------------*/
<> 161:2cc1468da177 66 /** @addtogroup CRC_LL_Exported_Functions
<> 161:2cc1468da177 67 * @{
<> 161:2cc1468da177 68 */
<> 161:2cc1468da177 69
<> 161:2cc1468da177 70 /** @addtogroup CRC_LL_EF_Init
<> 161:2cc1468da177 71 * @{
<> 161:2cc1468da177 72 */
<> 161:2cc1468da177 73
<> 161:2cc1468da177 74 /**
<> 161:2cc1468da177 75 * @brief De-initialize CRC registers (Registers restored to their default values).
<> 161:2cc1468da177 76 * @param CRCx CRC Instance
<> 161:2cc1468da177 77 * @retval An ErrorStatus enumeration value:
<> 161:2cc1468da177 78 * - SUCCESS: CRC registers are de-initialized
<> 161:2cc1468da177 79 * - ERROR: CRC registers are not de-initialized
<> 161:2cc1468da177 80 */
<> 161:2cc1468da177 81 ErrorStatus LL_CRC_DeInit(CRC_TypeDef *CRCx)
<> 161:2cc1468da177 82 {
<> 161:2cc1468da177 83 ErrorStatus status = SUCCESS;
<> 161:2cc1468da177 84
<> 161:2cc1468da177 85 /* Check the parameters */
<> 161:2cc1468da177 86 assert_param(IS_CRC_ALL_INSTANCE(CRCx));
<> 161:2cc1468da177 87
<> 161:2cc1468da177 88 if (CRCx == CRC)
<> 161:2cc1468da177 89 {
<> 161:2cc1468da177 90 /* Force CRC reset */
<> 161:2cc1468da177 91 LL_AHB1_GRP1_ForceReset(LL_AHB1_GRP1_PERIPH_CRC);
<> 161:2cc1468da177 92
<> 161:2cc1468da177 93 /* Release CRC reset */
<> 161:2cc1468da177 94 LL_AHB1_GRP1_ReleaseReset(LL_AHB1_GRP1_PERIPH_CRC);
<> 161:2cc1468da177 95 }
<> 161:2cc1468da177 96 else
<> 161:2cc1468da177 97 {
<> 161:2cc1468da177 98 status = ERROR;
<> 161:2cc1468da177 99 }
<> 161:2cc1468da177 100
<> 161:2cc1468da177 101 return (status);
<> 161:2cc1468da177 102 }
<> 161:2cc1468da177 103
<> 161:2cc1468da177 104 /**
<> 161:2cc1468da177 105 * @}
<> 161:2cc1468da177 106 */
<> 161:2cc1468da177 107
<> 161:2cc1468da177 108 /**
<> 161:2cc1468da177 109 * @}
<> 161:2cc1468da177 110 */
<> 161:2cc1468da177 111
<> 161:2cc1468da177 112 /**
<> 161:2cc1468da177 113 * @}
<> 161:2cc1468da177 114 */
<> 161:2cc1468da177 115
<> 161:2cc1468da177 116 #endif /* defined (CRC) */
<> 161:2cc1468da177 117
<> 161:2cc1468da177 118 /**
<> 161:2cc1468da177 119 * @}
<> 161:2cc1468da177 120 */
<> 161:2cc1468da177 121
<> 161:2cc1468da177 122 #endif /* USE_FULL_LL_DRIVER */
<> 161:2cc1468da177 123
<> 161:2cc1468da177 124 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
<> 161:2cc1468da177 125