Embedded Xinu Operating System
An ongoing research project and educational operating system.
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
random.h
1 #ifndef _RANDOM_H_
2 #define _RANDOM_H_
3 
4 #include <bcm2837.h>
5 
6 #define RNG_CTRL ((volatile unsigned int*)(PERIPHERALS_BASE+0x00104000))
7 #define RNG_STATUS ((volatile unsigned int*)(PERIPHERALS_BASE+0x00104004))
8 #define RNG_DATA ((volatile unsigned int*)(PERIPHERALS_BASE+0x00104008))
9 #define RNG_INT_MASK ((volatile unsigned int*)(PERIPHERALS_BASE+0x00104010))
10 
11 extern void random_init(void);
12 extern unsigned int random(void);
13 
14 #endif /* _RANDOM_H_ */