Skip to content

Commit

Permalink
zephyr-sys: Bring thread_analyzer symbols in if selected
Browse files Browse the repository at this point in the history
Enable use of the thread analyzer, if it is enabled.

Signed-off-by: David Brown <[email protected]>
  • Loading branch information
d3zd3z committed Oct 25, 2024
1 parent 14c44c5 commit a14cf8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions zephyr-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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_.*")
Expand Down
4 changes: 4 additions & 0 deletions zephyr-sys/wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ extern int errno;
#include <zephyr/drivers/led_strip.h>
#include <zephyr/drivers/led.h>

#ifdef CONFIG_THREAD_ANALYZER
#include <zephyr/debug/thread_analyzer.h>
#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
Expand Down

0 comments on commit a14cf8b

Please sign in to comment.