28 #include <libopencm3/stm32/rcc.h>
29 #include <libopencm3/stm32/rng.h>
34 rcc_periph_clock_enable(RCC_RNG);
42 rcc_periph_clock_disable(RCC_RNG);
49 if (rng_get_random(&tmp) && (tmp !=
last)) {
64 tmp = rng_get_random_blocking();
bool rng_get(uint32_t *rand_nr)
uint32_t rng_wait_and_get(void)
arch independent Random Number Generator API
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.