Update STM32 RNGEN register bit name to more closely match documentation.
This commit is contained in:
parent
70746ccd67
commit
512769296a
@ -40,7 +40,7 @@ static void rng_setup(void)
|
|||||||
/* Enable the random number generation by setting the RNGEN bit in the RNG_CR
|
/* 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.
|
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)
|
static void gpio_setup(void)
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
/* --- RNG_CR values ------------------------------------------------------- */
|
/* --- RNG_CR values ------------------------------------------------------- */
|
||||||
|
|
||||||
/* RNG ENABLE */
|
/* RNG ENABLE */
|
||||||
#define RNG_CR_EN (1 << 2)
|
#define RNG_CR_RNGEN (1 << 2)
|
||||||
|
|
||||||
/* RNG interupt enable */
|
/* RNG interupt enable */
|
||||||
#define RNG_CR_IE (1 << 3)
|
#define RNG_CR_IE (1 << 3)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user