Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
rng_arch.c File Reference

arch specific Random Number Generator API More...

#include "mcu_periph/rng.h"
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/stm32/rng.h>
+ Include dependency graph for rng_arch.c:

Go to the source code of this file.

Functions

void rng_init (void)
 
void rng_deinit (void)
 
bool rng_get (uint32_t *rand_nr)
 
uint32_t rng_wait_and_get (void)
 

Variables

uint32_t last
 

Detailed Description

arch specific Random Number Generator API

Definition in file rng_arch.c.

Function Documentation

◆ rng_deinit()

void rng_deinit ( void  )

Definition at line 40 of file rng_arch.c.

◆ rng_get()

bool rng_get ( uint32_t rand_nr)

Definition at line 47 of file rng_arch.c.

References last.

◆ rng_init()

void rng_init ( void  )

Definition at line 33 of file rng_arch.c.

References last, and rng_wait_and_get().

+ Here is the call graph for this function:

◆ rng_wait_and_get()

uint32_t rng_wait_and_get ( void  )

Definition at line 61 of file rng_arch.c.

References last.

Variable Documentation

◆ last