Skip to content

Commit

Permalink
chore: minor code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Jan 1, 2024
1 parent 380af5c commit e98a051
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 287 deletions.
5 changes: 0 additions & 5 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,9 @@ fn main() {
fs::write(out_dir.join("libCH58xBLE.a"), include_bytes!("vendor/LIBCH58xBLE.a")).unwrap();
}

// Put the linker script somewhere the linker can find it.
// fs::write(out_dir.join("link.x"), include_bytes!("link.x")).unwrap();

fs::write(out_dir.join("memory.x"), include_bytes!("memory.x")).unwrap();
println!("cargo:rustc-link-search={}", out_dir.display());

//println!("cargo:rustc-link-search={}", out_dir.display());

println!("cargo:rerun-if-changed=memory.x");
println!("cargo:rerun-if-changed=build.rs");
}
2 changes: 0 additions & 2 deletions examples/blinky.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ fn main() -> ! {

let mut delay = CycleDelay;

let mut rtc = hal::rtc::Rtc;

// LED PA8
// let mut led = Output::new(p.PA8, Level::Low, OutputDrive::_5mA);
let mut led = Output::new(p.PB18, Level::Low, OutputDrive::_5mA);
Expand Down
3 changes: 0 additions & 3 deletions src/interrupt.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
use core::sync::atomic::{compiler_fence, Ordering};

Check warning on line 1 in src/interrupt.rs

View workflow job for this annotation

GitHub Actions / build

unused imports: `Ordering`, `compiler_fence`
use core::{mem, ptr};

pub use qingke::interrupt::Priority;
use qingke_rt::CoreInterrupt as CoreInterruptEnum;

use crate::pac;
use crate::pac::interrupt::Interrupt as InterruptEnum;
use crate::pac::__EXTERNAL_INTERRUPTS as _;

Check warning on line 6 in src/interrupt.rs

View workflow job for this annotation

GitHub Actions / build

unused import: `crate::pac::__EXTERNAL_INTERRUPTS as _`

Expand Down
277 changes: 0 additions & 277 deletions src/rt.rs

This file was deleted.

0 comments on commit e98a051

Please sign in to comment.