diff --git a/zephyr-sys/build.rs b/zephyr-sys/build.rs index 6193aa35..db98a5ef 100644 --- a/zephyr-sys/build.rs +++ b/zephyr-sys/build.rs @@ -85,6 +85,7 @@ fn main() -> Result<()> { .allowlist_function("led_.*") .allowlist_function("sys_.*") .allowlist_function("uart_.*") + .allowlist_function("thread_analyzer.*") .allowlist_item("E.*") .allowlist_item("K_.*") .allowlist_item("ZR_.*") diff --git a/zephyr-sys/wrapper.h b/zephyr-sys/wrapper.h index 796ffc53..f0b96b46 100644 --- a/zephyr-sys/wrapper.h +++ b/zephyr-sys/wrapper.h @@ -44,6 +44,10 @@ extern int errno; #include #include +#ifdef CONFIG_THREAD_ANALYZER +#include +#endif + /* * bindgen will only output #defined constants that resolve to simple numbers. These are some * symbols that we want exported that, at least in some situations, are more complex, usually with a