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)
arch independent Random Number Generator API
uint32_t rng_wait_and_get(void)