-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from luojia65/luojia65/refactor
[rust] refactor, move common rust parts from 100ask-d1-h to rust module
- Loading branch information
Showing
15 changed files
with
91 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[alias] | ||
xtask = "run --package xtask --release --" | ||
xtask = "run --package syterkit-xtask --release --" | ||
make = "xtask make" | ||
flash = "xtask flash" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
"rust", | ||
"rust/macros", | ||
"rust/xtask", | ||
"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"] | ||
default-members = ["rust/xtask"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#![no_std] | ||
#![no_main] | ||
|
||
use panic_halt as _; | ||
use syterkit::{entry, println, Clocks, Peripherals}; | ||
|
||
#[entry] | ||
fn main(p: Peripherals, c: Clocks) { | ||
println!("Welcome to SyterKit 100ask-d1-h package!"); | ||
println!("Please refer to each files in `bin` path for examples."); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
cargo-features = ["per-package-target"] | ||
|
||
[package] | ||
name = "syterkit" | ||
version = "0.0.0" | ||
edition = "2021" | ||
default-target = "riscv64imac-unknown-none-elf" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
naked-function = "0.1.5" | ||
allwinner-hal = { git = "https://github.com/rustsbi/allwinner-hal" } | ||
allwinner-rt = { git = "https://github.com/rustsbi/allwinner-hal" } | ||
embedded-hal = "1.0.0" | ||
embedded-io = "0.6.1" | ||
spin = "0.9" | ||
syterkit-macros = { path = "macros" } | ||
|
||
[lib] | ||
name = "syterkit" | ||
test = false | ||
bench = false | ||
|
||
[features] | ||
default = ["nezha"] | ||
nezha = [] | ||
lichee = [] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
name = "xtask" | ||
name = "syterkit-xtask" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters