57 #include "stm32f4xx_rcc.h" 300 if ((
RNG->SR & RNG_FLAG) != (uint8_t)
RESET)
331 RNG->SR = ~(uint32_t)(((uint32_t)RNG_FLAG) << 4);
349 if ((
RNG->SR & RNG_IT) != (uint8_t)
RESET)
378 RNG->SR = (uint8_t)~RNG_IT;
void assert_param(int val)
void RNG_DeInit(void)
De-initializes the RNG peripheral registers to their default reset values.
#define IS_FUNCTIONAL_STATE(STATE)
#define IS_RNG_GET_IT(RNG_IT)
#define IS_RNG_CLEAR_FLAG(RNG_FLAG)
void RNG_ClearITPendingBit(uint8_t RNG_IT)
Clears the RNG interrupt pending bit(s).
This file contains all the functions prototypes for the Random Number Generator(RNG) firmware library...
void RNG_ITConfig(FunctionalState NewState)
Enables or disables the RNG interrupt.
void RNG_ClearFlag(uint8_t RNG_FLAG)
Clears the RNG flags.
ITStatus RNG_GetITStatus(uint8_t RNG_IT)
Checks whether the specified RNG interrupt has occurred or not.
uint32_t RNG_GetRandomNumber(void)
Returns a 32-bit random number.
void RNG_Cmd(FunctionalState NewState)
Enables or disables the RNG peripheral.
void RCC_AHB2PeriphResetCmd(uint32_t RCC_AHB2Periph, FunctionalState NewState)
Forces or releases AHB2 peripheral reset.
FlagStatus RNG_GetFlagStatus(uint8_t RNG_FLAG)
Checks whether the specified RNG flag is set or not.
#define RCC_AHB2Periph_RNG
#define IS_RNG_GET_FLAG(RNG_FLAG)