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:
Kojto
Date:
Wed Mar 02 09:58:28 2016 +0100
Revision:
115:87f2f5183dfb
Child:
116:c0f6e94411f5
Release 115 of the mbed library

Changes:
- new targets - NUCLEO_F746ZG
- Bugfix - STM32F7 + STM32L4 - RTC init fix
- Bugfix - STM32L4 Set NVIC_RAM_VECTOR_ADDRESS to 0x10000000
- B96B_F446VE - CAN addition
- Changed target name from NZ32SC151 to NZ32_SC151

Who changed what in which revision?

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