-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decalred static functions for intermediate computation
- Loading branch information
Showing
4 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef SOFT_RNG_H_ | ||
#define SOFT_RNG_H_ | ||
|
||
#include <stdint.h> | ||
#include "stm32f4xx.h" | ||
|
||
uint32_t GenerateRandom(void); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Software Random Number Generator | ||
A library to Generate 32-bit Random Numbers using an onboard 32-bit Timer | ||
and a combination of LFSR, XOR Shift and the FNV hash function on an STM32F401 | ||
Nucleo Development Board |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#include "Soft_RNG.h" | ||
|
||
#define SEED_CONST 0x5A5A5A5A | ||
|
||
static uint32_t GetTimerCounter(void) | ||
{ | ||
|
||
} | ||
|
||
static uint16_t GetLFSR(uint16_t seed16) | ||
{ | ||
|
||
} | ||
|
||
static uint32_t GetXORShift(uint32_t seed32) | ||
{ | ||
|
||
} | ||
|
||
static uint32_t GetFNVHash(uint32_t val) | ||
{ | ||
|
||
} | ||
|
||
uint32_t GenerateRandom(void) | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters