mbed official / mbed

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

Committer:
Kojto
Date:
Tue Mar 15 14:34:00 2016 +0000
Revision:
116:c0f6e94411f5
Parent:
107:4f6c30876dfa
Child:
122:f9eeca106725
Release 116 of the mbed library

Changes:
- new targets - NUCLEO_L073RZ
- fixes to IOTSS BEID platform
- LPC824, LPC1549 and LPC11U68 - fix PWMOut SCT bugs
- STM32F7 - Cube driver
- STM32F4 - add RTC LSI macro, defined as 0
- STM32F3 - fix multiple ADC clock initialization
- retarget - binary mode fix for GCC

Who changed what in which revision?

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