Skip to content

Commit

Permalink
bindgen C2A RESULT type
Browse files Browse the repository at this point in the history
  • Loading branch information
sksat committed May 17, 2024
1 parent dd9ed4d commit 09d1659
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ fn main() {
bind("hal".into(), "spi.h");
bind("hal".into(), "uart.h");
bind("hal".into(), "wdt.h");

bind("library".into(), "result.h");
}

fn bind(module: PathBuf, header: &str) {
Expand Down
1 change: 1 addition & 0 deletions c2a_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use core::*;
include!(concat!(env!("OUT_DIR"), "/c2a_core_main.rs"));

pub mod hal;
pub mod library;
pub mod system;

#[cfg(feature = "export-src")]
Expand Down
1 change: 1 addition & 0 deletions library/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include!(concat!(env!("OUT_DIR"), "/result.rs"));

0 comments on commit 09d1659

Please sign in to comment.