Eric Lewiston / STM32L4xx_HAL_Driver

Dependents:   BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo

Fork of STM32L4xx_HAL_Driver by Senior Design: Sound Monitor

Committer:
EricLew
Date:
Mon Nov 02 19:37:23 2015 +0000
Revision:
0:80ee8f3b695e
Errors are with definitions of LCD and QSPI functions. I believe all .h and .c files are  uploaded, but there may need to be certain functions called.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
EricLew 0:80ee8f3b695e 1 /**
EricLew 0:80ee8f3b695e 2 ******************************************************************************
EricLew 0:80ee8f3b695e 3 * @file stm32l4xx_hal_crc_ex.h
EricLew 0:80ee8f3b695e 4 * @author MCD Application Team
EricLew 0:80ee8f3b695e 5 * @version V1.1.0
EricLew 0:80ee8f3b695e 6 * @date 16-September-2015
EricLew 0:80ee8f3b695e 7 * @brief Header file of CRC HAL extended module.
EricLew 0:80ee8f3b695e 8 ******************************************************************************
EricLew 0:80ee8f3b695e 9 * @attention
EricLew 0:80ee8f3b695e 10 *
EricLew 0:80ee8f3b695e 11 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
EricLew 0:80ee8f3b695e 12 *
EricLew 0:80ee8f3b695e 13 * Redistribution and use in source and binary forms, with or without modification,
EricLew 0:80ee8f3b695e 14 * are permitted provided that the following conditions are met:
EricLew 0:80ee8f3b695e 15 * 1. Redistributions of source code must retain the above copyright notice,
EricLew 0:80ee8f3b695e 16 * this list of conditions and the following disclaimer.
EricLew 0:80ee8f3b695e 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
EricLew 0:80ee8f3b695e 18 * this list of conditions and the following disclaimer in the documentation
EricLew 0:80ee8f3b695e 19 * and/or other materials provided with the distribution.
EricLew 0:80ee8f3b695e 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
EricLew 0:80ee8f3b695e 21 * may be used to endorse or promote products derived from this software
EricLew 0:80ee8f3b695e 22 * without specific prior written permission.
EricLew 0:80ee8f3b695e 23 *
EricLew 0:80ee8f3b695e 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
EricLew 0:80ee8f3b695e 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
EricLew 0:80ee8f3b695e 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
EricLew 0:80ee8f3b695e 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
EricLew 0:80ee8f3b695e 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
EricLew 0:80ee8f3b695e 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
EricLew 0:80ee8f3b695e 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
EricLew 0:80ee8f3b695e 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
EricLew 0:80ee8f3b695e 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
EricLew 0:80ee8f3b695e 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
EricLew 0:80ee8f3b695e 34 *
EricLew 0:80ee8f3b695e 35 ******************************************************************************
EricLew 0:80ee8f3b695e 36 */
EricLew 0:80ee8f3b695e 37
EricLew 0:80ee8f3b695e 38 /* Define to prevent recursive inclusion -------------------------------------*/
EricLew 0:80ee8f3b695e 39 #ifndef __STM32L4xx_HAL_CRC_EX_H
EricLew 0:80ee8f3b695e 40 #define __STM32L4xx_HAL_CRC_EX_H
EricLew 0:80ee8f3b695e 41
EricLew 0:80ee8f3b695e 42 #ifdef __cplusplus
EricLew 0:80ee8f3b695e 43 extern "C" {
EricLew 0:80ee8f3b695e 44 #endif
EricLew 0:80ee8f3b695e 45
EricLew 0:80ee8f3b695e 46 /* Includes ------------------------------------------------------------------*/
EricLew 0:80ee8f3b695e 47 #include "stm32l4xx_hal_def.h"
EricLew 0:80ee8f3b695e 48
EricLew 0:80ee8f3b695e 49 /** @addtogroup STM32L4xx_HAL_Driver
EricLew 0:80ee8f3b695e 50 * @{
EricLew 0:80ee8f3b695e 51 */
EricLew 0:80ee8f3b695e 52
EricLew 0:80ee8f3b695e 53 /** @addtogroup CRCEx
EricLew 0:80ee8f3b695e 54 * @{
EricLew 0:80ee8f3b695e 55 */
EricLew 0:80ee8f3b695e 56
EricLew 0:80ee8f3b695e 57 /* Exported types ------------------------------------------------------------*/
EricLew 0:80ee8f3b695e 58 /* Exported constants --------------------------------------------------------*/
EricLew 0:80ee8f3b695e 59 /** @defgroup CRCEx_Exported_Constants CRCEx Exported Constants
EricLew 0:80ee8f3b695e 60 * @{
EricLew 0:80ee8f3b695e 61 */
EricLew 0:80ee8f3b695e 62
EricLew 0:80ee8f3b695e 63 /** @defgroup CRCEx_Input_Data_Inversion Input Data Inversion Modes
EricLew 0:80ee8f3b695e 64 * @{
EricLew 0:80ee8f3b695e 65 */
EricLew 0:80ee8f3b695e 66 #define CRC_INPUTDATA_INVERSION_NONE ((uint32_t)0x00000000) /*!< No input data inversion */
EricLew 0:80ee8f3b695e 67 #define CRC_INPUTDATA_INVERSION_BYTE ((uint32_t)CRC_CR_REV_IN_0) /*!< Byte-wise input data inversion */
EricLew 0:80ee8f3b695e 68 #define CRC_INPUTDATA_INVERSION_HALFWORD ((uint32_t)CRC_CR_REV_IN_1) /*!< HalfWord-wise input data inversion */
EricLew 0:80ee8f3b695e 69 #define CRC_INPUTDATA_INVERSION_WORD ((uint32_t)CRC_CR_REV_IN) /*!< Word-wise input data inversion */
EricLew 0:80ee8f3b695e 70 /**
EricLew 0:80ee8f3b695e 71 * @}
EricLew 0:80ee8f3b695e 72 */
EricLew 0:80ee8f3b695e 73
EricLew 0:80ee8f3b695e 74 /** @defgroup CRCEx_Output_Data_Inversion Output Data Inversion Modes
EricLew 0:80ee8f3b695e 75 * @{
EricLew 0:80ee8f3b695e 76 */
EricLew 0:80ee8f3b695e 77 #define CRC_OUTPUTDATA_INVERSION_DISABLE ((uint32_t)0x00000000) /*!< No output data inversion */
EricLew 0:80ee8f3b695e 78 #define CRC_OUTPUTDATA_INVERSION_ENABLE ((uint32_t)CRC_CR_REV_OUT) /*!< Bit-wise output data inversion */
EricLew 0:80ee8f3b695e 79 /**
EricLew 0:80ee8f3b695e 80 * @}
EricLew 0:80ee8f3b695e 81 */
EricLew 0:80ee8f3b695e 82
EricLew 0:80ee8f3b695e 83 /**
EricLew 0:80ee8f3b695e 84 * @}
EricLew 0:80ee8f3b695e 85 */
EricLew 0:80ee8f3b695e 86
EricLew 0:80ee8f3b695e 87 /* Exported macro ------------------------------------------------------------*/
EricLew 0:80ee8f3b695e 88 /** @defgroup CRCEx_Exported_Macros CRCEx Exported Macros
EricLew 0:80ee8f3b695e 89 * @{
EricLew 0:80ee8f3b695e 90 */
EricLew 0:80ee8f3b695e 91
EricLew 0:80ee8f3b695e 92 /**
EricLew 0:80ee8f3b695e 93 * @brief Set CRC output reversal
EricLew 0:80ee8f3b695e 94 * @param __HANDLE__: CRC handle
EricLew 0:80ee8f3b695e 95 * @retval None
EricLew 0:80ee8f3b695e 96 */
EricLew 0:80ee8f3b695e 97 #define __HAL_CRC_OUTPUTREVERSAL_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= CRC_CR_REV_OUT)
EricLew 0:80ee8f3b695e 98
EricLew 0:80ee8f3b695e 99 /**
EricLew 0:80ee8f3b695e 100 * @brief Unset CRC output reversal
EricLew 0:80ee8f3b695e 101 * @param __HANDLE__: CRC handle
EricLew 0:80ee8f3b695e 102 * @retval None
EricLew 0:80ee8f3b695e 103 */
EricLew 0:80ee8f3b695e 104 #define __HAL_CRC_OUTPUTREVERSAL_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(CRC_CR_REV_OUT))
EricLew 0:80ee8f3b695e 105
EricLew 0:80ee8f3b695e 106 /**
EricLew 0:80ee8f3b695e 107 * @brief Set CRC non-default polynomial
EricLew 0:80ee8f3b695e 108 * @param __HANDLE__: CRC handle
EricLew 0:80ee8f3b695e 109 * @param __POLYNOMIAL__: 7, 8, 16 or 32-bit polynomial
EricLew 0:80ee8f3b695e 110 * @retval None
EricLew 0:80ee8f3b695e 111 */
EricLew 0:80ee8f3b695e 112 #define __HAL_CRC_POLYNOMIAL_CONFIG(__HANDLE__, __POLYNOMIAL__) ((__HANDLE__)->Instance->POL = (__POLYNOMIAL__))
EricLew 0:80ee8f3b695e 113
EricLew 0:80ee8f3b695e 114 /**
EricLew 0:80ee8f3b695e 115 * @}
EricLew 0:80ee8f3b695e 116 */
EricLew 0:80ee8f3b695e 117
EricLew 0:80ee8f3b695e 118 /* Private macros --------------------------------------------------------*/
EricLew 0:80ee8f3b695e 119 /** @addtogroup CRCEx_Private_Macros CRCEx Private Macros
EricLew 0:80ee8f3b695e 120 * @{
EricLew 0:80ee8f3b695e 121 */
EricLew 0:80ee8f3b695e 122
EricLew 0:80ee8f3b695e 123 #define IS_CRC_INPUTDATA_INVERSION_MODE(MODE) (((MODE) == CRC_INPUTDATA_INVERSION_NONE) || \
EricLew 0:80ee8f3b695e 124 ((MODE) == CRC_INPUTDATA_INVERSION_BYTE) || \
EricLew 0:80ee8f3b695e 125 ((MODE) == CRC_INPUTDATA_INVERSION_HALFWORD) || \
EricLew 0:80ee8f3b695e 126 ((MODE) == CRC_INPUTDATA_INVERSION_WORD))
EricLew 0:80ee8f3b695e 127
EricLew 0:80ee8f3b695e 128
EricLew 0:80ee8f3b695e 129 #define IS_CRC_OUTPUTDATA_INVERSION_MODE(MODE) (((MODE) == CRC_OUTPUTDATA_INVERSION_DISABLE) || \
EricLew 0:80ee8f3b695e 130 ((MODE) == CRC_OUTPUTDATA_INVERSION_ENABLE))
EricLew 0:80ee8f3b695e 131
EricLew 0:80ee8f3b695e 132 /**
EricLew 0:80ee8f3b695e 133 * @}
EricLew 0:80ee8f3b695e 134 */
EricLew 0:80ee8f3b695e 135
EricLew 0:80ee8f3b695e 136 /* Exported functions --------------------------------------------------------*/
EricLew 0:80ee8f3b695e 137
EricLew 0:80ee8f3b695e 138 /** @addtogroup CRCEx_Exported_Functions CRC Extended Exported Functions
EricLew 0:80ee8f3b695e 139 * @{
EricLew 0:80ee8f3b695e 140 */
EricLew 0:80ee8f3b695e 141
EricLew 0:80ee8f3b695e 142 /** @addtogroup CRCEx_Group1 Extended Initialization/de-initialization functions
EricLew 0:80ee8f3b695e 143 * @{
EricLew 0:80ee8f3b695e 144 */
EricLew 0:80ee8f3b695e 145
EricLew 0:80ee8f3b695e 146 /* Initialization and de-initialization functions ****************************/
EricLew 0:80ee8f3b695e 147 HAL_StatusTypeDef HAL_CRCEx_Polynomial_Set(CRC_HandleTypeDef *hcrc, uint32_t Pol, uint32_t PolyLength);
EricLew 0:80ee8f3b695e 148 HAL_StatusTypeDef HAL_CRCEx_Input_Data_Reverse(CRC_HandleTypeDef *hcrc, uint32_t InputReverseMode);
EricLew 0:80ee8f3b695e 149 HAL_StatusTypeDef HAL_CRCEx_Output_Data_Reverse(CRC_HandleTypeDef *hcrc, uint32_t OutputReverseMode);
EricLew 0:80ee8f3b695e 150
EricLew 0:80ee8f3b695e 151 /**
EricLew 0:80ee8f3b695e 152 * @}
EricLew 0:80ee8f3b695e 153 */
EricLew 0:80ee8f3b695e 154
EricLew 0:80ee8f3b695e 155 /**
EricLew 0:80ee8f3b695e 156 * @}
EricLew 0:80ee8f3b695e 157 */
EricLew 0:80ee8f3b695e 158
EricLew 0:80ee8f3b695e 159 /**
EricLew 0:80ee8f3b695e 160 * @}
EricLew 0:80ee8f3b695e 161 */
EricLew 0:80ee8f3b695e 162
EricLew 0:80ee8f3b695e 163 /**
EricLew 0:80ee8f3b695e 164 * @}
EricLew 0:80ee8f3b695e 165 */
EricLew 0:80ee8f3b695e 166
EricLew 0:80ee8f3b695e 167 #ifdef __cplusplus
EricLew 0:80ee8f3b695e 168 }
EricLew 0:80ee8f3b695e 169 #endif
EricLew 0:80ee8f3b695e 170
EricLew 0:80ee8f3b695e 171 #endif /* __STM32L4xx_HAL_CRC_EX_H */
EricLew 0:80ee8f3b695e 172
EricLew 0:80ee8f3b695e 173 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
EricLew 0:80ee8f3b695e 174