aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32wl/src/bin/random.rs
diff options
context:
space:
mode:
authorxoviat <[email protected]>2023-06-19 21:18:46 -0500
committerxoviat <[email protected]>2023-06-19 21:18:46 -0500
commit0d67ef795e4dfecef90690bce51f2820f77fc4bc (patch)
treefa6b8a092652a9d0af9f67576b1b99063c3aa184 /examples/stm32wl/src/bin/random.rs
parent978e7b5e77f86dc82c393442702defa38b516f4b (diff)
parent37a1e9f971214c11a614b06b230be27c688fff1d (diff)
Merge branch 'main' of https://github.com/embassy-rs/embassy into tl-mbox-2
Diffstat (limited to 'examples/stm32wl/src/bin/random.rs')
-rw-r--r--examples/stm32wl/src/bin/random.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/stm32wl/src/bin/random.rs b/examples/stm32wl/src/bin/random.rs
index 182c607f9..d8562fca5 100644
--- a/examples/stm32wl/src/bin/random.rs
+++ b/examples/stm32wl/src/bin/random.rs
@@ -15,11 +15,9 @@ async fn main(_spawner: Spawner) {
15 config.rcc.enable_lsi = true; //Needed for RNG to work 15 config.rcc.enable_lsi = true; //Needed for RNG to work
16 16
17 let p = embassy_stm32::init(config); 17 let p = embassy_stm32::init(config);
18 unsafe { 18 pac::RCC.ccipr().modify(|w| {
19 pac::RCC.ccipr().modify(|w| { 19 w.set_rngsel(0b01);
20 w.set_rngsel(0b01); 20 });
21 });
22 }
23 21
24 info!("Hello World!"); 22 info!("Hello World!");
25 23