aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPiotr Esden-Tempski2013-01-06 18:05:49 -0800
committerPiotr Esden-Tempski2013-01-06 18:05:49 -0800
commitc03cbc41a1c260b160bee5b4a99fed9946f26c07 (patch)
tree8eaa1d803f7519095e8a89af9e3a16fb69c4b9d3 /examples
parent1f9911e35be3c57e43bcf2dbee5d649c885872ff (diff)
parentb9180a81d8a228a0ca4f37aae8e317a9d81fe4c9 (diff)
Merge pull request #73 RNG
Merge remote-tracking branch 'oojah/master'
Diffstat (limited to 'examples')
-rw-r--r--examples/stm32/f4/stm32f4-discovery/random/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32/f4/stm32f4-discovery/random/random.c b/examples/stm32/f4/stm32f4-discovery/random/random.c
index 9305be3..74f6775 100644
--- a/examples/stm32/f4/stm32f4-discovery/random/random.c
+++ b/examples/stm32/f4/stm32f4-discovery/random/random.c
@@ -40,7 +40,7 @@ static void rng_setup(void)
/* Enable the random number generation by setting the RNGEN bit in the RNG_CR
register. This activates the analog part, the RNG_LFSR and the error detector.
*/
- RNG_CR |= RNG_CR_EN;
+ RNG_CR |= RNG_CR_RNGEN;
}
static void gpio_setup(void)