mbed official / mbed

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

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