aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRoger Light2012-12-12 20:34:44 +0000
committerRoger Light2012-12-12 20:34:44 +0000
commit512769296aa1a488f02dcb1505b650b98b6837ce (patch)
treebfa7a3b869db46e1b672e30db569e018da17b46c /examples
parent70746ccd676445481511c0e8bc6b617f7b052878 (diff)
Update STM32 RNGEN register bit name to more closely match documentation.
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)