Skip to content

Commit

Permalink
start the big refactor :)
Browse files Browse the repository at this point in the history
  • Loading branch information
vk2seb committed Nov 3, 2023
1 parent 4c56a54 commit d92a0d2
Show file tree
Hide file tree
Showing 8 changed files with 363 additions and 207 deletions.
1 change: 1 addition & 0 deletions firmware/deps/litex-interrupt/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target/*
7 changes: 7 additions & 0 deletions firmware/deps/litex-interrupt/Cargo.lock

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

11 changes: 11 additions & 0 deletions firmware/deps/litex-interrupt/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[package]
name = "litex-interrupt"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
proc-macro = true

[dependencies]
8 changes: 8 additions & 0 deletions firmware/deps/litex-interrupt/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
extern crate proc_macro;

use proc_macro::TokenStream;

#[proc_macro_attribute]
pub fn return_as_is(_attr: TokenStream, item: TokenStream) -> TokenStream {
item
}
12 changes: 12 additions & 0 deletions firmware/litex-fw/Cargo.lock

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

2 changes: 2 additions & 0 deletions firmware/litex-fw/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ lazy_static = { version = "1.4.0", features = ["spin_no_std"] }
vexriscv = "0.0.3"
aligned-array = "1.0.1"
spin = "0.9.8"
irq = "0.2.3"
litex-interrupt = { path = "../deps/litex-interrupt" }

[profile.release]
lto = true
Expand Down
Loading

0 comments on commit d92a0d2

Please sign in to comment.