From 512769296aa1a488f02dcb1505b650b98b6837ce Mon Sep 17 00:00:00 2001 From: Roger Light Date: Wed, 12 Dec 2012 20:34:44 +0000 Subject: Update STM32 RNGEN register bit name to more closely match documentation. --- examples/stm32/f4/stm32f4-discovery/random/random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/stm32/f4/stm32f4-discovery/random') 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) -- cgit v1.2.3