version_2.0

Dependents:   cc3000_ping_demo_try_2

Fork of mbed by mbed official

Committer:
erezi
Date:
Wed Jun 25 06:08:49 2014 +0000
Revision:
86:4f9a848d74c7
Parent:
84:0b3ab51c8877
version_2.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 84:0b3ab51c8877 1 /**
bogdanm 84:0b3ab51c8877 2 ******************************************************************************
bogdanm 84:0b3ab51c8877 3 * @file stm32l0xx_hal_crc_ex.h
bogdanm 84:0b3ab51c8877 4 * @author MCD Application Team
bogdanm 84:0b3ab51c8877 5 * @version V1.0.0
bogdanm 84:0b3ab51c8877 6 * @date 22-April-2014
bogdanm 84:0b3ab51c8877 7 * @brief Header file of CRC HAL module.
bogdanm 84:0b3ab51c8877 8 ******************************************************************************
bogdanm 84:0b3ab51c8877 9 * @attention
bogdanm 84:0b3ab51c8877 10 *
bogdanm 84:0b3ab51c8877 11 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
bogdanm 84:0b3ab51c8877 12 *
bogdanm 84:0b3ab51c8877 13 * Redistribution and use in source and binary forms, with or without modification,
bogdanm 84:0b3ab51c8877 14 * are permitted provided that the following conditions are met:
bogdanm 84:0b3ab51c8877 15 * 1. Redistributions of source code must retain the above copyright notice,
bogdanm 84:0b3ab51c8877 16 * this list of conditions and the following disclaimer.
bogdanm 84:0b3ab51c8877 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
bogdanm 84:0b3ab51c8877 18 * this list of conditions and the following disclaimer in the documentation
bogdanm 84:0b3ab51c8877 19 * and/or other materials provided with the distribution.
bogdanm 84:0b3ab51c8877 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
bogdanm 84:0b3ab51c8877 21 * may be used to endorse or promote products derived from this software
bogdanm 84:0b3ab51c8877 22 * without specific prior written permission.
bogdanm 84:0b3ab51c8877 23 *
bogdanm 84:0b3ab51c8877 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
bogdanm 84:0b3ab51c8877 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
bogdanm 84:0b3ab51c8877 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
bogdanm 84:0b3ab51c8877 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
bogdanm 84:0b3ab51c8877 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
bogdanm 84:0b3ab51c8877 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
bogdanm 84:0b3ab51c8877 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
bogdanm 84:0b3ab51c8877 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
bogdanm 84:0b3ab51c8877 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
bogdanm 84:0b3ab51c8877 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
bogdanm 84:0b3ab51c8877 34 *
bogdanm 84:0b3ab51c8877 35 ******************************************************************************
bogdanm 84:0b3ab51c8877 36 */
bogdanm 84:0b3ab51c8877 37
bogdanm 84:0b3ab51c8877 38 /* Define to prevent recursive inclusion -------------------------------------*/
bogdanm 84:0b3ab51c8877 39 #ifndef __STM32L0xx_HAL_CRC_EX_H
bogdanm 84:0b3ab51c8877 40 #define __STM32L0xx_HAL_CRC_EX_H
bogdanm 84:0b3ab51c8877 41
bogdanm 84:0b3ab51c8877 42 #ifdef __cplusplus
bogdanm 84:0b3ab51c8877 43 extern "C" {
bogdanm 84:0b3ab51c8877 44 #endif
bogdanm 84:0b3ab51c8877 45
bogdanm 84:0b3ab51c8877 46 /* Includes ------------------------------------------------------------------*/
bogdanm 84:0b3ab51c8877 47 #include "stm32l0xx_hal_def.h"
bogdanm 84:0b3ab51c8877 48
bogdanm 84:0b3ab51c8877 49 /** @addtogroup STM32L0xx_HAL_Driver
bogdanm 84:0b3ab51c8877 50 * @{
bogdanm 84:0b3ab51c8877 51 */
bogdanm 84:0b3ab51c8877 52
bogdanm 84:0b3ab51c8877 53 /** @addtogroup CRCEx
bogdanm 84:0b3ab51c8877 54 * @{
bogdanm 84:0b3ab51c8877 55 */
bogdanm 84:0b3ab51c8877 56
bogdanm 84:0b3ab51c8877 57 /* Exported types ------------------------------------------------------------*/
bogdanm 84:0b3ab51c8877 58
bogdanm 84:0b3ab51c8877 59
bogdanm 84:0b3ab51c8877 60 /* Exported constants --------------------------------------------------------*/
bogdanm 84:0b3ab51c8877 61
bogdanm 84:0b3ab51c8877 62 /* Exported macro ------------------------------------------------------------*/
bogdanm 84:0b3ab51c8877 63
bogdanm 84:0b3ab51c8877 64 /** @defgroup CRCEx_Extended_Exported_Macro
bogdanm 84:0b3ab51c8877 65 * @{
bogdanm 84:0b3ab51c8877 66 */
bogdanm 84:0b3ab51c8877 67
bogdanm 84:0b3ab51c8877 68
bogdanm 84:0b3ab51c8877 69 /**
bogdanm 84:0b3ab51c8877 70 * @brief Set CRC non-default polynomial
bogdanm 84:0b3ab51c8877 71 * @param __HANDLE__ : CRC handle
bogdanm 84:0b3ab51c8877 72 * @param __POLYNOMIAL__: 7, 8, 16 or 32-bit polynomial
bogdanm 84:0b3ab51c8877 73 * @retval None.
bogdanm 84:0b3ab51c8877 74 */
bogdanm 84:0b3ab51c8877 75 #define __HAL_CRC_POLYNOMIAL_CONFIG(__HANDLE__, __POLYNOMIAL__) ((__HANDLE__)->Instance->POL = (__POLYNOMIAL__))
bogdanm 84:0b3ab51c8877 76
bogdanm 84:0b3ab51c8877 77
bogdanm 84:0b3ab51c8877 78 /**
bogdanm 84:0b3ab51c8877 79 * @}
bogdanm 84:0b3ab51c8877 80 */
bogdanm 84:0b3ab51c8877 81
bogdanm 84:0b3ab51c8877 82 /* Exported functions --------------------------------------------------------*/
bogdanm 84:0b3ab51c8877 83
bogdanm 84:0b3ab51c8877 84 /* Initialization and de-initialization functions ****************************/
bogdanm 84:0b3ab51c8877 85 HAL_StatusTypeDef HAL_CRCEx_Polynomial_Set(CRC_HandleTypeDef *hcrc, uint32_t Pol, uint32_t PolyLength);
bogdanm 84:0b3ab51c8877 86
bogdanm 84:0b3ab51c8877 87 /* Peripheral Control functions ***********************************************/
bogdanm 84:0b3ab51c8877 88 /* Peripheral State and Error functions ***************************************/
bogdanm 84:0b3ab51c8877 89
bogdanm 84:0b3ab51c8877 90
bogdanm 84:0b3ab51c8877 91 /**
bogdanm 84:0b3ab51c8877 92 * @}
bogdanm 84:0b3ab51c8877 93 */
bogdanm 84:0b3ab51c8877 94
bogdanm 84:0b3ab51c8877 95 /**
bogdanm 84:0b3ab51c8877 96 * @}
bogdanm 84:0b3ab51c8877 97 */
bogdanm 84:0b3ab51c8877 98
bogdanm 84:0b3ab51c8877 99 #ifdef __cplusplus
bogdanm 84:0b3ab51c8877 100 }
bogdanm 84:0b3ab51c8877 101 #endif
bogdanm 84:0b3ab51c8877 102
bogdanm 84:0b3ab51c8877 103 #endif /* __STM32L0xx_HAL_CRC_EX_H */
bogdanm 84:0b3ab51c8877 104
bogdanm 84:0b3ab51c8877 105 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/