Skip to content

Commit

Permalink
update outdated explanation that doesn't match snippet (#154)
Browse files Browse the repository at this point in the history
#145 updated the code snippet to remove a bunch of code that is no longer needed, but did not remove the bullet point from the explanation, making it confusing to read. it says "The next block ..." but there is no such block.
  • Loading branch information
mildsunrise authored Mar 30, 2024
1 parent a485f31 commit 56daffe
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ Inside the `main` function we can find:
- Here we configure the system clocks - in this case, boost to the maxiumum for the chip
- We freeze the clocks, which means we can't change them later
- Some drivers need a reference to the clocks to know how to calculate rates and durations
- The next block of code instantiates some peripherals (namely RTC and the two timer groups) to disable the watchdog, which is armed after boot
- Without that code, the SoC would reboot after some time
- There is another way to prevent the reboot: feeding the watchdog
- `println!("Hello world!");`
- Prints "Hello world!"
- `loop {}`
Expand Down

0 comments on commit 56daffe

Please sign in to comment.