Skip to content

Commit d950d4f

Browse files
rebased from master
1 parent 1abcaad commit d950d4f

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

chips/stm32u545/src/entropy.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Licensed under the Apache License, Version 2.0 or the MIT License.
2+
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// Copyright OxidOS Automotive 2026.
4+
15
// specified in the documentation (NIST compliant RNG configuration table in AN4230 available from www.st.com.)
26
// that values for the CR, HTCR and NSCR should be 0x00F11F00, 0x76B3 and 0x24C2 respectivly. CR config
37
// is that value, 0x00F11F00, plus the CONDRST bit

chips/stm32u5xx/src/chip.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ pub struct Stm32u5xxDefaultPeripherals<'a> {
3838
pub gpio_a: gpio::Port<'a>,
3939
pub gpio_c: gpio::Port<'a>,
4040
pub dac: dac::Dac,
41-
pub trng: &'a entropy::Trng<'a>,
4241
}
4342

4443
fn enable_tim2_clock() {
@@ -62,7 +61,6 @@ impl<'a> Stm32u5xxDefaultPeripherals<'a> {
6261
gpio_a: gpio::Port::new(gpio::GPIO_A_BASE, exti, gpio::GpioPort::PortA),
6362
gpio_c: gpio::Port::new(gpio::GPIO_C_BASE, exti, gpio::GpioPort::PortC),
6463
dac: dac::Dac::new(dac::DAC_BASE, enable_dac1_clock),
65-
trng,
6664
}
6765
}
6866

chips/stm32u5xx/src/entropy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ use core::cell::Cell;
66

77
use kernel::deferred_call::{DeferredCall, DeferredCallClient};
88
use kernel::hil::entropy::{Client32, Continue, Entropy32};
9+
use kernel::utilities::StaticRef;
910
use kernel::utilities::cells::OptionalCell;
1011
use kernel::utilities::registers::interfaces::{ReadWriteable, Readable, Writeable};
11-
use kernel::utilities::registers::{register_bitfields, register_structs, ReadOnly, ReadWrite};
12-
use kernel::utilities::StaticRef;
12+
use kernel::utilities::registers::{ReadOnly, ReadWrite, register_bitfields, register_structs};
1313

1414
register_structs! {
1515
/// Random number generator

0 commit comments

Comments
 (0)