Skip to content

Commit 4ef2194

Browse files
updated comment
1 parent 0ad8097 commit 4ef2194

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

chips/stm32u545/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ use stm32u5xx::entropy::{RNG_CR_CONFIG_U545, RNG_HTCR_CONFIG_U545, RNG_NSCR_CONF
88
pub use stm32u5xx::{chip, dma, entropy, exti, gpio, rcc, tim, usart};
99

1010
use cortexm33::{CortexM33, CortexMVariant};
11-
// specified in the documentation (NIST compliant RNG configuration table in AN4230 available from www.st.com.)
12-
// that values for the CR, HTCR and NSCR should be 0x00F11F00, 0x76B3 and 0x24C2 respectivly. CR config
13-
// is that value, 0x00F11F00, plus the CONDRST bit
1411

1512
pub type Trng<'a> =
1613
stm32u5xx::entropy::Trng<'a, RNG_CR_CONFIG_U545, RNG_HTCR_CONFIG_U545, RNG_NSCR_CONFIG_U545>;

chips/stm32u5xx/src/entropy.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ use kernel::utilities::registers::interfaces::{ReadWriteable, Readable, Writeabl
1111
use kernel::utilities::registers::{register_bitfields, register_structs, ReadOnly, ReadWrite};
1212
use kernel::utilities::StaticRef;
1313

14+
// specified in the documentation (NIST compliant RNG configuration table in AN4230 available from www.st.com.)
15+
// that values for the CR, HTCR and NSCR should be 0x00F11F00, 0x76B3 and 0x24C2 respectivly. CR config
16+
// is that value, 0x00F11F00, plus the CONDRST bit
1417
pub const RNG_CR_CONFIG_U545: u32 = 0x40F11F00;
1518
pub const RNG_HTCR_CONFIG_U545: u32 = 0x76B3;
1619
pub const RNG_NSCR_CONFIG_U545: u32 = 0x24C2;

0 commit comments

Comments
 (0)