Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.

Dependents:   1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB

Fork of mbed by mbed official

Committer:
elijahorr
Date:
Thu Apr 14 07:28:54 2016 +0000
Revision:
121:672067c3ada4
Parent:
110:165afa46840b
.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 110:165afa46840b 1 /**
Kojto 110:165afa46840b 2 ******************************************************************************
Kojto 110:165afa46840b 3 * @file stm32f4xx_hal_rng.h
Kojto 110:165afa46840b 4 * @author MCD Application Team
Kojto 110:165afa46840b 5 * @version V1.4.1
Kojto 110:165afa46840b 6 * @date 09-October-2015
Kojto 110:165afa46840b 7 * @brief Header file of RNG HAL module.
Kojto 110:165afa46840b 8 ******************************************************************************
Kojto 110:165afa46840b 9 * @attention
Kojto 110:165afa46840b 10 *
Kojto 110:165afa46840b 11 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
Kojto 110:165afa46840b 12 *
Kojto 110:165afa46840b 13 * Redistribution and use in source and binary forms, with or without modification,
Kojto 110:165afa46840b 14 * are permitted provided that the following conditions are met:
Kojto 110:165afa46840b 15 * 1. Redistributions of source code must retain the above copyright notice,
Kojto 110:165afa46840b 16 * this list of conditions and the following disclaimer.
Kojto 110:165afa46840b 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
Kojto 110:165afa46840b 18 * this list of conditions and the following disclaimer in the documentation
Kojto 110:165afa46840b 19 * and/or other materials provided with the distribution.
Kojto 110:165afa46840b 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
Kojto 110:165afa46840b 21 * may be used to endorse or promote products derived from this software
Kojto 110:165afa46840b 22 * without specific prior written permission.
Kojto 110:165afa46840b 23 *
Kojto 110:165afa46840b 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Kojto 110:165afa46840b 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Kojto 110:165afa46840b 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Kojto 110:165afa46840b 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
Kojto 110:165afa46840b 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Kojto 110:165afa46840b 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
Kojto 110:165afa46840b 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Kojto 110:165afa46840b 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Kojto 110:165afa46840b 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Kojto 110:165afa46840b 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Kojto 110:165afa46840b 34 *
Kojto 110:165afa46840b 35 ******************************************************************************
Kojto 110:165afa46840b 36 */
Kojto 110:165afa46840b 37
Kojto 110:165afa46840b 38 /* Define to prevent recursive inclusion -------------------------------------*/
Kojto 110:165afa46840b 39 #ifndef __STM32F4xx_HAL_RNG_H
Kojto 110:165afa46840b 40 #define __STM32F4xx_HAL_RNG_H
Kojto 110:165afa46840b 41
Kojto 110:165afa46840b 42 #ifdef __cplusplus
Kojto 110:165afa46840b 43 extern "C" {
Kojto 110:165afa46840b 44 #endif
Kojto 110:165afa46840b 45
Kojto 110:165afa46840b 46 #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) ||\
Kojto 110:165afa46840b 47 defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||\
Kojto 110:165afa46840b 48 defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) || defined(STM32F469xx) ||\
Kojto 110:165afa46840b 49 defined(STM32F479xx)
Kojto 110:165afa46840b 50
Kojto 110:165afa46840b 51 /* Includes ------------------------------------------------------------------*/
Kojto 110:165afa46840b 52 #include "stm32f4xx_hal_def.h"
Kojto 110:165afa46840b 53
Kojto 110:165afa46840b 54 /** @addtogroup STM32F4xx_HAL_Driver
Kojto 110:165afa46840b 55 * @{
Kojto 110:165afa46840b 56 */
Kojto 110:165afa46840b 57
Kojto 110:165afa46840b 58 /** @defgroup RNG RNG
Kojto 110:165afa46840b 59 * @brief RNG HAL module driver
Kojto 110:165afa46840b 60 * @{
Kojto 110:165afa46840b 61 */
Kojto 110:165afa46840b 62
Kojto 110:165afa46840b 63 /* Exported types ------------------------------------------------------------*/
Kojto 110:165afa46840b 64
Kojto 110:165afa46840b 65 /** @defgroup RNG_Exported_Types RNG Exported Types
Kojto 110:165afa46840b 66 * @{
Kojto 110:165afa46840b 67 */
Kojto 110:165afa46840b 68
Kojto 110:165afa46840b 69 /** @defgroup RNG_Exported_Types_Group1 RNG State Structure definition
Kojto 110:165afa46840b 70 * @{
Kojto 110:165afa46840b 71 */
Kojto 110:165afa46840b 72 typedef enum
Kojto 110:165afa46840b 73 {
Kojto 110:165afa46840b 74 HAL_RNG_STATE_RESET = 0x00, /*!< RNG not yet initialized or disabled */
Kojto 110:165afa46840b 75 HAL_RNG_STATE_READY = 0x01, /*!< RNG initialized and ready for use */
Kojto 110:165afa46840b 76 HAL_RNG_STATE_BUSY = 0x02, /*!< RNG internal process is ongoing */
Kojto 110:165afa46840b 77 HAL_RNG_STATE_TIMEOUT = 0x03, /*!< RNG timeout state */
Kojto 110:165afa46840b 78 HAL_RNG_STATE_ERROR = 0x04 /*!< RNG error state */
Kojto 110:165afa46840b 79
Kojto 110:165afa46840b 80 }HAL_RNG_StateTypeDef;
Kojto 110:165afa46840b 81
Kojto 110:165afa46840b 82 /**
Kojto 110:165afa46840b 83 * @}
Kojto 110:165afa46840b 84 */
Kojto 110:165afa46840b 85
Kojto 110:165afa46840b 86 /** @defgroup RNG_Exported_Types_Group2 RNG Handle Structure definition
Kojto 110:165afa46840b 87 * @{
Kojto 110:165afa46840b 88 */
Kojto 110:165afa46840b 89 typedef struct
Kojto 110:165afa46840b 90 {
Kojto 110:165afa46840b 91 RNG_TypeDef *Instance; /*!< Register base address */
Kojto 110:165afa46840b 92
Kojto 110:165afa46840b 93 HAL_LockTypeDef Lock; /*!< RNG locking object */
Kojto 110:165afa46840b 94
Kojto 110:165afa46840b 95 __IO HAL_RNG_StateTypeDef State; /*!< RNG communication state */
Kojto 110:165afa46840b 96
Kojto 110:165afa46840b 97 uint32_t RandomNumber; /*!< Last Generated RNG Data */
Kojto 110:165afa46840b 98
Kojto 110:165afa46840b 99 }RNG_HandleTypeDef;
Kojto 110:165afa46840b 100
Kojto 110:165afa46840b 101 /**
Kojto 110:165afa46840b 102 * @}
Kojto 110:165afa46840b 103 */
Kojto 110:165afa46840b 104
Kojto 110:165afa46840b 105 /**
Kojto 110:165afa46840b 106 * @}
Kojto 110:165afa46840b 107 */
Kojto 110:165afa46840b 108
Kojto 110:165afa46840b 109 /* Exported constants --------------------------------------------------------*/
Kojto 110:165afa46840b 110
Kojto 110:165afa46840b 111 /** @defgroup RNG_Exported_Constants RNG Exported Constants
Kojto 110:165afa46840b 112 * @{
Kojto 110:165afa46840b 113 */
Kojto 110:165afa46840b 114
Kojto 110:165afa46840b 115 /** @defgroup RNG_Exported_Constants_Group1 RNG Interrupt definition
Kojto 110:165afa46840b 116 * @{
Kojto 110:165afa46840b 117 */
Kojto 110:165afa46840b 118 #define RNG_IT_DRDY RNG_SR_DRDY /*!< Data Ready interrupt */
Kojto 110:165afa46840b 119 #define RNG_IT_CEI RNG_SR_CEIS /*!< Clock error interrupt */
Kojto 110:165afa46840b 120 #define RNG_IT_SEI RNG_SR_SEIS /*!< Seed error interrupt */
Kojto 110:165afa46840b 121 /**
Kojto 110:165afa46840b 122 * @}
Kojto 110:165afa46840b 123 */
Kojto 110:165afa46840b 124
Kojto 110:165afa46840b 125 /** @defgroup RNG_Exported_Constants_Group2 RNG Flag definition
Kojto 110:165afa46840b 126 * @{
Kojto 110:165afa46840b 127 */
Kojto 110:165afa46840b 128 #define RNG_FLAG_DRDY RNG_SR_DRDY /*!< Data ready */
Kojto 110:165afa46840b 129 #define RNG_FLAG_CECS RNG_SR_CECS /*!< Clock error current status */
Kojto 110:165afa46840b 130 #define RNG_FLAG_SECS RNG_SR_SECS /*!< Seed error current status */
Kojto 110:165afa46840b 131
Kojto 110:165afa46840b 132 /**
Kojto 110:165afa46840b 133 * @}
Kojto 110:165afa46840b 134 */
Kojto 110:165afa46840b 135
Kojto 110:165afa46840b 136 /**
Kojto 110:165afa46840b 137 * @}
Kojto 110:165afa46840b 138 */
Kojto 110:165afa46840b 139
Kojto 110:165afa46840b 140 /* Exported macros -----------------------------------------------------------*/
Kojto 110:165afa46840b 141
Kojto 110:165afa46840b 142 /** @defgroup RNG_Exported_Macros RNG Exported Macros
Kojto 110:165afa46840b 143 * @{
Kojto 110:165afa46840b 144 */
Kojto 110:165afa46840b 145
Kojto 110:165afa46840b 146 /** @brief Reset RNG handle state
Kojto 110:165afa46840b 147 * @param __HANDLE__: RNG Handle
Kojto 110:165afa46840b 148 * @retval None
Kojto 110:165afa46840b 149 */
Kojto 110:165afa46840b 150 #define __HAL_RNG_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_RNG_STATE_RESET)
Kojto 110:165afa46840b 151
Kojto 110:165afa46840b 152 /**
Kojto 110:165afa46840b 153 * @brief Enables the RNG peripheral.
Kojto 110:165afa46840b 154 * @param __HANDLE__: RNG Handle
Kojto 110:165afa46840b 155 * @retval None
Kojto 110:165afa46840b 156 */
Kojto 110:165afa46840b 157 #define __HAL_RNG_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= RNG_CR_RNGEN)
Kojto 110:165afa46840b 158
Kojto 110:165afa46840b 159 /**
Kojto 110:165afa46840b 160 * @brief Disables the RNG peripheral.
Kojto 110:165afa46840b 161 * @param __HANDLE__: RNG Handle
Kojto 110:165afa46840b 162 * @retval None
Kojto 110:165afa46840b 163 */
Kojto 110:165afa46840b 164 #define __HAL_RNG_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~RNG_CR_RNGEN)
Kojto 110:165afa46840b 165
Kojto 110:165afa46840b 166 /**
Kojto 110:165afa46840b 167 * @brief Check the selected RNG flag status.
Kojto 110:165afa46840b 168 * @param __HANDLE__: RNG Handle
Kojto 110:165afa46840b 169 * @param __FLAG__: RNG flag
Kojto 110:165afa46840b 170 * This parameter can be one of the following values:
Kojto 110:165afa46840b 171 * @arg RNG_FLAG_DRDY: Data ready
Kojto 110:165afa46840b 172 * @arg RNG_FLAG_CECS: Clock error current status
Kojto 110:165afa46840b 173 * @arg RNG_FLAG_SECS: Seed error current status
Kojto 110:165afa46840b 174 * @retval The new state of __FLAG__ (SET or RESET).
Kojto 110:165afa46840b 175 */
Kojto 110:165afa46840b 176 #define __HAL_RNG_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__))
Kojto 110:165afa46840b 177
Kojto 110:165afa46840b 178 /**
Kojto 110:165afa46840b 179 * @brief Clears the selected RNG flag status.
Kojto 110:165afa46840b 180 * @param __HANDLE__: RNG handle
Kojto 110:165afa46840b 181 * @param __FLAG__: RNG flag to clear
Kojto 110:165afa46840b 182 * @note WARNING: This is a dummy macro for HAL code alignment,
Kojto 110:165afa46840b 183 * flags RNG_FLAG_DRDY, RNG_FLAG_CECS and RNG_FLAG_SECS are read-only.
Kojto 110:165afa46840b 184 * @retval None
Kojto 110:165afa46840b 185 */
Kojto 110:165afa46840b 186 #define __HAL_RNG_CLEAR_FLAG(__HANDLE__, __FLAG__) /* dummy macro */
Kojto 110:165afa46840b 187
Kojto 110:165afa46840b 188
Kojto 110:165afa46840b 189
Kojto 110:165afa46840b 190 /**
Kojto 110:165afa46840b 191 * @brief Enables the RNG interrupts.
Kojto 110:165afa46840b 192 * @param __HANDLE__: RNG Handle
Kojto 110:165afa46840b 193 * @retval None
Kojto 110:165afa46840b 194 */
Kojto 110:165afa46840b 195 #define __HAL_RNG_ENABLE_IT(__HANDLE__) ((__HANDLE__)->Instance->CR |= RNG_CR_IE)
Kojto 110:165afa46840b 196
Kojto 110:165afa46840b 197 /**
Kojto 110:165afa46840b 198 * @brief Disables the RNG interrupts.
Kojto 110:165afa46840b 199 * @param __HANDLE__: RNG Handle
Kojto 110:165afa46840b 200 * @retval None
Kojto 110:165afa46840b 201 */
Kojto 110:165afa46840b 202 #define __HAL_RNG_DISABLE_IT(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~RNG_CR_IE)
Kojto 110:165afa46840b 203
Kojto 110:165afa46840b 204 /**
Kojto 110:165afa46840b 205 * @brief Checks whether the specified RNG interrupt has occurred or not.
Kojto 110:165afa46840b 206 * @param __HANDLE__: RNG Handle
Kojto 110:165afa46840b 207 * @param __INTERRUPT__: specifies the RNG interrupt status flag to check.
Kojto 110:165afa46840b 208 * This parameter can be one of the following values:
Kojto 110:165afa46840b 209 * @arg RNG_IT_DRDY: Data ready interrupt
Kojto 110:165afa46840b 210 * @arg RNG_IT_CEI: Clock error interrupt
Kojto 110:165afa46840b 211 * @arg RNG_IT_SEI: Seed error interrupt
Kojto 110:165afa46840b 212 * @retval The new state of __INTERRUPT__ (SET or RESET).
Kojto 110:165afa46840b 213 */
Kojto 110:165afa46840b 214 #define __HAL_RNG_GET_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->SR & (__INTERRUPT__)) == (__INTERRUPT__))
Kojto 110:165afa46840b 215
Kojto 110:165afa46840b 216 /**
Kojto 110:165afa46840b 217 * @brief Clear the RNG interrupt status flags.
Kojto 110:165afa46840b 218 * @param __HANDLE__: RNG Handle
Kojto 110:165afa46840b 219 * @param __INTERRUPT__: specifies the RNG interrupt status flag to clear.
Kojto 110:165afa46840b 220 * This parameter can be one of the following values:
Kojto 110:165afa46840b 221 * @arg RNG_IT_CEI: Clock error interrupt
Kojto 110:165afa46840b 222 * @arg RNG_IT_SEI: Seed error interrupt
Kojto 110:165afa46840b 223 * @note RNG_IT_DRDY flag is read-only, reading RNG_DR register automatically clears RNG_IT_DRDY.
Kojto 110:165afa46840b 224 * @retval None
Kojto 110:165afa46840b 225 */
Kojto 110:165afa46840b 226 #define __HAL_RNG_CLEAR_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->SR) = ~(__INTERRUPT__))
Kojto 110:165afa46840b 227
Kojto 110:165afa46840b 228 /**
Kojto 110:165afa46840b 229 * @}
Kojto 110:165afa46840b 230 */
Kojto 110:165afa46840b 231
Kojto 110:165afa46840b 232 /* Exported functions --------------------------------------------------------*/
Kojto 110:165afa46840b 233 /** @defgroup RNG_Exported_Functions RNG Exported Functions
Kojto 110:165afa46840b 234 * @{
Kojto 110:165afa46840b 235 */
Kojto 110:165afa46840b 236
Kojto 110:165afa46840b 237 /** @defgroup RNG_Exported_Functions_Group1 Initialization and de-initialization functions
Kojto 110:165afa46840b 238 * @{
Kojto 110:165afa46840b 239 */
Kojto 110:165afa46840b 240 HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng);
Kojto 110:165afa46840b 241 HAL_StatusTypeDef HAL_RNG_DeInit (RNG_HandleTypeDef *hrng);
Kojto 110:165afa46840b 242 void HAL_RNG_MspInit(RNG_HandleTypeDef *hrng);
Kojto 110:165afa46840b 243 void HAL_RNG_MspDeInit(RNG_HandleTypeDef *hrng);
Kojto 110:165afa46840b 244
Kojto 110:165afa46840b 245 /**
Kojto 110:165afa46840b 246 * @}
Kojto 110:165afa46840b 247 */
Kojto 110:165afa46840b 248
Kojto 110:165afa46840b 249 /** @defgroup RNG_Exported_Functions_Group2 Peripheral Control functions
Kojto 110:165afa46840b 250 * @{
Kojto 110:165afa46840b 251 */
Kojto 110:165afa46840b 252 uint32_t HAL_RNG_GetRandomNumber(RNG_HandleTypeDef *hrng); /* Obsolete, use HAL_RNG_GenerateRandomNumber() instead */
Kojto 110:165afa46840b 253 uint32_t HAL_RNG_GetRandomNumber_IT(RNG_HandleTypeDef *hrng); /* Obsolete, use HAL_RNG_GenerateRandomNumber_IT() instead */
Kojto 110:165afa46840b 254
Kojto 110:165afa46840b 255 HAL_StatusTypeDef HAL_RNG_GenerateRandomNumber(RNG_HandleTypeDef *hrng, uint32_t *random32bit);
Kojto 110:165afa46840b 256 HAL_StatusTypeDef HAL_RNG_GenerateRandomNumber_IT(RNG_HandleTypeDef *hrng);
Kojto 110:165afa46840b 257 uint32_t HAL_RNG_ReadLastRandomNumber(RNG_HandleTypeDef *hrng);
Kojto 110:165afa46840b 258
Kojto 110:165afa46840b 259 void HAL_RNG_IRQHandler(RNG_HandleTypeDef *hrng);
Kojto 110:165afa46840b 260 void HAL_RNG_ErrorCallback(RNG_HandleTypeDef *hrng);
Kojto 110:165afa46840b 261 void HAL_RNG_ReadyDataCallback(RNG_HandleTypeDef* hrng, uint32_t random32bit);
Kojto 110:165afa46840b 262
Kojto 110:165afa46840b 263 /**
Kojto 110:165afa46840b 264 * @}
Kojto 110:165afa46840b 265 */
Kojto 110:165afa46840b 266
Kojto 110:165afa46840b 267 /** @defgroup RNG_Exported_Functions_Group3 Peripheral State functions
Kojto 110:165afa46840b 268 * @{
Kojto 110:165afa46840b 269 */
Kojto 110:165afa46840b 270 HAL_RNG_StateTypeDef HAL_RNG_GetState(RNG_HandleTypeDef *hrng);
Kojto 110:165afa46840b 271
Kojto 110:165afa46840b 272 /**
Kojto 110:165afa46840b 273 * @}
Kojto 110:165afa46840b 274 */
Kojto 110:165afa46840b 275
Kojto 110:165afa46840b 276 /**
Kojto 110:165afa46840b 277 * @}
Kojto 110:165afa46840b 278 */
Kojto 110:165afa46840b 279
Kojto 110:165afa46840b 280 /* Private types -------------------------------------------------------------*/
Kojto 110:165afa46840b 281 /** @defgroup RNG_Private_Types RNG Private Types
Kojto 110:165afa46840b 282 * @{
Kojto 110:165afa46840b 283 */
Kojto 110:165afa46840b 284
Kojto 110:165afa46840b 285 /**
Kojto 110:165afa46840b 286 * @}
Kojto 110:165afa46840b 287 */
Kojto 110:165afa46840b 288
Kojto 110:165afa46840b 289 /* Private defines -----------------------------------------------------------*/
Kojto 110:165afa46840b 290 /** @defgroup RNG_Private_Defines RNG Private Defines
Kojto 110:165afa46840b 291 * @{
Kojto 110:165afa46840b 292 */
Kojto 110:165afa46840b 293
Kojto 110:165afa46840b 294 /**
Kojto 110:165afa46840b 295 * @}
Kojto 110:165afa46840b 296 */
Kojto 110:165afa46840b 297
Kojto 110:165afa46840b 298 /* Private variables ---------------------------------------------------------*/
Kojto 110:165afa46840b 299 /** @defgroup RNG_Private_Variables RNG Private Variables
Kojto 110:165afa46840b 300 * @{
Kojto 110:165afa46840b 301 */
Kojto 110:165afa46840b 302
Kojto 110:165afa46840b 303 /**
Kojto 110:165afa46840b 304 * @}
Kojto 110:165afa46840b 305 */
Kojto 110:165afa46840b 306
Kojto 110:165afa46840b 307 /* Private constants ---------------------------------------------------------*/
Kojto 110:165afa46840b 308 /** @defgroup RNG_Private_Constants RNG Private Constants
Kojto 110:165afa46840b 309 * @{
Kojto 110:165afa46840b 310 */
Kojto 110:165afa46840b 311
Kojto 110:165afa46840b 312 /**
Kojto 110:165afa46840b 313 * @}
Kojto 110:165afa46840b 314 */
Kojto 110:165afa46840b 315
Kojto 110:165afa46840b 316 /* Private macros ------------------------------------------------------------*/
Kojto 110:165afa46840b 317 /** @defgroup RNG_Private_Macros RNG Private Macros
Kojto 110:165afa46840b 318 * @{
Kojto 110:165afa46840b 319 */
Kojto 110:165afa46840b 320 #define IS_RNG_IT(IT) (((IT) == RNG_IT_CEI) || \
Kojto 110:165afa46840b 321 ((IT) == RNG_IT_SEI))
Kojto 110:165afa46840b 322
Kojto 110:165afa46840b 323 #define IS_RNG_FLAG(FLAG) (((FLAG) == RNG_FLAG_DRDY) || \
Kojto 110:165afa46840b 324 ((FLAG) == RNG_FLAG_CECS) || \
Kojto 110:165afa46840b 325 ((FLAG) == RNG_FLAG_SECS))
Kojto 110:165afa46840b 326
Kojto 110:165afa46840b 327 /**
Kojto 110:165afa46840b 328 * @}
Kojto 110:165afa46840b 329 */
Kojto 110:165afa46840b 330
Kojto 110:165afa46840b 331 /* Private functions prototypes ----------------------------------------------*/
Kojto 110:165afa46840b 332 /** @defgroup RNG_Private_Functions_Prototypes RNG Private Functions Prototypes
Kojto 110:165afa46840b 333 * @{
Kojto 110:165afa46840b 334 */
Kojto 110:165afa46840b 335
Kojto 110:165afa46840b 336 /**
Kojto 110:165afa46840b 337 * @}
Kojto 110:165afa46840b 338 */
Kojto 110:165afa46840b 339
Kojto 110:165afa46840b 340 /* Private functions ---------------------------------------------------------*/
Kojto 110:165afa46840b 341 /** @defgroup RNG_Private_Functions RNG Private Functions
Kojto 110:165afa46840b 342 * @{
Kojto 110:165afa46840b 343 */
Kojto 110:165afa46840b 344
Kojto 110:165afa46840b 345 /**
Kojto 110:165afa46840b 346 * @}
Kojto 110:165afa46840b 347 */
Kojto 110:165afa46840b 348
Kojto 110:165afa46840b 349 /**
Kojto 110:165afa46840b 350 * @}
Kojto 110:165afa46840b 351 */
Kojto 110:165afa46840b 352
Kojto 110:165afa46840b 353 /**
Kojto 110:165afa46840b 354 * @}
Kojto 110:165afa46840b 355 */
Kojto 110:165afa46840b 356
Kojto 110:165afa46840b 357 #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx || STM32F427xx || STM32F437xx ||\
Kojto 110:165afa46840b 358 STM32F429xx || STM32F439xx || STM32F410xx || STM32F469xx || STM32F479xx */
Kojto 110:165afa46840b 359
Kojto 110:165afa46840b 360 #ifdef __cplusplus
Kojto 110:165afa46840b 361 }
Kojto 110:165afa46840b 362 #endif
Kojto 110:165afa46840b 363
Kojto 110:165afa46840b 364
Kojto 110:165afa46840b 365 #endif /* __STM32F4xx_HAL_RNG_H */
Kojto 110:165afa46840b 366
Kojto 110:165afa46840b 367 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/