Skip to content

Commit

Permalink
Merge pull request #70: Fix Broken Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
michalfita authored Dec 22, 2023
2 parents a496153 + eee5b70 commit 1a2acb8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

### Fixed
- Examples now build and link again
- Examples now build again again
- [#62] Remove ambiguous reexports from `src/serial/mod.rs`.
- TWIHS: Fix issue with clock frequency calculation.
- Fix CI: source of PACs matrix + clippy satisfaction
Expand Down
2 changes: 2 additions & 0 deletions boards/atsame70_xpro/examples/blinky_delay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ mod app {
use hal::ehal::digital::v2::ToggleableOutputPin;
use hal::pio::*;
use hal::rtt::*;
use rtt_target::rtt_init_print;

#[shared]
struct Shared {}
Expand All @@ -26,6 +27,7 @@ mod app {

#[init]
fn init(ctx: init::Context) -> (Shared, Local, init::Monotonics) {
rtt_init_print!();
let clocks = Tokens::new(
(ctx.device.PMC, ctx.device.SUPC, ctx.device.UTMI),
&ctx.device.WDT.into(),
Expand Down
2 changes: 2 additions & 0 deletions boards/atsame70_xpro/examples/blinky_irq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ mod app {
use hal::ehal::timer::CountDown;
use hal::pio::*;
use hal::rtt::*;
use rtt_target::rtt_init_print;

#[shared]
struct Shared {}
Expand All @@ -26,6 +27,7 @@ mod app {

#[init]
fn init(ctx: init::Context) -> (Shared, Local, init::Monotonics) {
rtt_init_print!();
let clocks = Tokens::new(
(ctx.device.PMC, ctx.device.SUPC, ctx.device.UTMI),
&ctx.device.WDT.into(),
Expand Down

0 comments on commit 1a2acb8

Please sign in to comment.