From 09d165923e8186456ba6509ee792da8d236642e9 Mon Sep 17 00:00:00 2001 From: sksat Date: Fri, 17 May 2024 14:04:54 +0900 Subject: [PATCH] bindgen C2A RESULT type --- build.rs | 2 ++ c2a_core.rs | 1 + library/mod.rs | 1 + 3 files changed, 4 insertions(+) create mode 100644 library/mod.rs diff --git a/build.rs b/build.rs index 0315f33da..1ca3788a2 100644 --- a/build.rs +++ b/build.rs @@ -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) { diff --git a/c2a_core.rs b/c2a_core.rs index f495d9211..d2025a1f3 100644 --- a/c2a_core.rs +++ b/c2a_core.rs @@ -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")] diff --git a/library/mod.rs b/library/mod.rs new file mode 100644 index 000000000..a75f03b11 --- /dev/null +++ b/library/mod.rs @@ -0,0 +1 @@ +include!(concat!(env!("OUT_DIR"), "/result.rs"));