mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
ba3088c4bd
into separate patch files
55 lines
1.2 KiB
Diff
55 lines
1.2 KiB
Diff
*** stock_iot-lab_M3/openwsn/cross-layers/openrandom.h Thu Apr 24 11:01:37 2014
|
|
--- riot-openwsn-wip/openwsn/cross-layers/openrandom.h Thu Apr 24 16:55:54 2014
|
|
***************
|
|
*** 2,10 ****
|
|
#define __OPENRANDOM_H
|
|
|
|
/**
|
|
! \addtogroup helpers
|
|
\{
|
|
! \addtogroup Random
|
|
\{
|
|
*/
|
|
|
|
--- 2,10 ----
|
|
#define __OPENRANDOM_H
|
|
|
|
/**
|
|
! \addtogroup cross-layers
|
|
\{
|
|
! \addtogroup OpenRandom
|
|
\{
|
|
*/
|
|
|
|
***************
|
|
*** 14,25 ****
|
|
|
|
//=========================== typedef =========================================
|
|
|
|
! //=========================== variables =======================================
|
|
|
|
//=========================== prototypes ======================================
|
|
|
|
! void openrandom_init();
|
|
! uint16_t openrandom_get16b();
|
|
|
|
/**
|
|
\}
|
|
--- 14,29 ----
|
|
|
|
//=========================== typedef =========================================
|
|
|
|
! //=========================== module variables ================================
|
|
!
|
|
! typedef struct {
|
|
! uint16_t shift_reg; // Galois shift register used to obtain a pseudo-random number
|
|
! } random_vars_t;
|
|
|
|
//=========================== prototypes ======================================
|
|
|
|
! void openrandom_init(void);
|
|
! uint16_t openrandom_get16b(void);
|
|
|
|
/**
|
|
\}
|