diff options
| author | xoviat <[email protected]> | 2023-06-19 21:18:46 -0500 |
|---|---|---|
| committer | xoviat <[email protected]> | 2023-06-19 21:18:46 -0500 |
| commit | 0d67ef795e4dfecef90690bce51f2820f77fc4bc (patch) | |
| tree | fa6b8a092652a9d0af9f67576b1b99063c3aa184 /examples/stm32wl/src/bin/random.rs | |
| parent | 978e7b5e77f86dc82c393442702defa38b516f4b (diff) | |
| parent | 37a1e9f971214c11a614b06b230be27c688fff1d (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.rs | 8 |
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 | ||
