Skip to content

Commit

Permalink
[board] small fix and code cleanup for 100ask-d1-h-rs
Browse files Browse the repository at this point in the history
Signed-off-by: DongQing <placebo27@hust.edu.cn>
  • Loading branch information
Placebo27 committed Sep 24, 2024
1 parent 42b2edd commit ef24c9f
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 3 deletions.
36 changes: 36 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
[workspace]
resolver = "2"
members = ["board/100ask-d1-h-rs", "board/100ask-d1-h-rs/xtask"]
members = [
"board/100ask-d1-h-rs",
"board/100ask-d1-h-rs/macros",
"board/100ask-d1-h-rs/xtask",
]
default-members = ["board/100ask-d1-h-rs/xtask"]
2 changes: 1 addition & 1 deletion board/100ask-d1-h-rs/src/bin/init-dram.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![no_std]
#![no_main]
use panic_halt as _;
use syterkit_100ask_d1_h::{mctl, println, entry, Clocks, Peripherals};
use syterkit_100ask_d1_h::{entry, mctl, println, Clocks, Peripherals};

#[entry]
fn main(p: Peripherals, c: Clocks) {
Expand Down
2 changes: 1 addition & 1 deletion board/100ask-d1-h-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ macro_rules! print {

#[macro_export]
macro_rules! println {
() => ($crate::print!("\n"));
() => ($crate::print!("\r\n"));
($($arg:tt)*) => {{
$crate::_print(core::format_args!($($arg)*));
$crate::println!();
Expand Down

0 comments on commit ef24c9f

Please sign in to comment.