1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/pkg/openwsn/patches/cross-layers_openrandom.h.patch
2014-05-14 15:06:50 +02:00

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);
/**
\}