Skip to content

Commit 059e305

Browse files
jilu-otd3zd3z
authored andcommitted
Add bt_ APIs to the generated bindings
Add bt_ APIs to the generated bindings to enable bluetooth application development. Signed-off-by: Jim Benjamin Luther <[email protected]>
1 parent 51d99f3 commit 059e305

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

zephyr-sys/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ fn main() -> Result<()> {
7272
.allowlist_function("gpio_.*")
7373
.allowlist_function("sys_.*")
7474
.allowlist_function("z_log.*")
75+
.allowlist_function("bt_.*")
7576
.allowlist_item("E.*")
7677
.allowlist_item("K_.*")
7778
.allowlist_item("ZR_.*")

zephyr-sys/wrapper.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ extern int errno;
3434
#include <zephyr/kernel/thread_stack.h>
3535
#include <zephyr/drivers/gpio.h>
3636
#include <zephyr/logging/log.h>
37+
#include <zephyr/bluetooth/bluetooth.h>
3738

3839
/*
3940
* bindgen will output #defined constant that resolve to simple numbers. There are some symbols

0 commit comments

Comments
 (0)