mbed official / mbed

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

Committer:
Kojto
Date:
Thu Jul 07 14:34:11 2016 +0100
Revision:
122:f9eeca106725
Parent:
112:6f327212ef96
Release 122 of the mbed library

Changes:
- new targets - Nucleo L432KC, Beetle, Nucleo F446ZE, Nucleo L011K4
- Thread safety addition - mbed API should contain a statement about thread safety
- critical section API addition
- CAS API (core_util_atomic_incr/decr)
- DEVICE_ are generated from targets.json file, device.h deprecated
- Callback replaces FunctionPointer to provide std like interface
- mbed HAL API docs improvements
- toolchain - prexif attributes with MBED_
- add new attributes - packed, weak, forcedinline, align
- target.json - contains targets definitions
- ST - L1XX - Cube update to 1.5
- SPI clock selection fix (clock from APB domain)
- F7 - Cube update v1.4.0
- L0 - baudrate init fix
- L1 - Cube update v1.5
- F3 - baudrate init fix, 3 targets CAN support
- F4 - Cube update v1.12.0, 3 targets CAN support
- L4XX - Cube update v1.5.1
- F0 - update Cube to v1.5.0
- L4 - 2 targets (L476RG/VG) CAN support
- NXP - pwm clock fix for KSDK2 MCU
- LPC2368 - remove ARM toolchain support - due to regression
- KSDK2 - fix SPI , I2C address and repeat start
- Silabs - some fixes backported from mbed 3
- Renesas - RZ_A1H - SystemCoreClockUpdate addition

Who changed what in which revision?

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